Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso committed Sep 1, 2023
1 parent 4cd3bd1 commit 544fdf2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@
"plugin:@typescript-eslint/recommended",
"prettier"
],
"rules": {}
"rules": {
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-explicit-any": "off"
}
}
1 change: 0 additions & 1 deletion src/js/components/reusable/List.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as React from 'react';
import * as Icon from 'react-feather';

import Container from './Container';
import Paragraph from './Paragraph';
Expand Down
11 changes: 1 addition & 10 deletions src/js/utils/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,11 @@ interface MenuEntry {
section?: string;
}

const DEFAULT_ROUTES: MenuEntries = {
home: {
label: 'topbar.home',
link: Route.HOME,
},
};

export const routesForPath = (path: string): MenuEntries => DEFAULT_ROUTES;

export const getIdFromHash = (): string | undefined => {
const hash = window.location.hash;
const lastIndex = hash.lastIndexOf('#');

if (lastIndex <= 0) {
if (lastIndex < 0) {
return undefined;
}

Expand Down

0 comments on commit 544fdf2

Please sign in to comment.