Skip to content

Commit

Permalink
ci(lint): enable @typescript-eslint/ban-ts-comment eslint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgb committed Jan 19, 2025
1 parent b573514 commit 86e17a0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
1 change: 0 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export default tseslint.config([
}
],
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/ban-ts-comment": 0,
"import/no-named-as-default": 0,
"@typescript-eslint/switch-exhaustiveness-check": [2,
{
Expand Down
2 changes: 0 additions & 2 deletions ui/lib/__tests__/graph.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ describe("graph lib", () => {
};

const objects2 = await getChildren(
// @ts-ignore
newClient,
app.name,
app.namespace,
Expand Down Expand Up @@ -198,7 +197,6 @@ describe("graph lib", () => {
};

const objects2 = await getChildren(
// @ts-ignore
newClient,
app.name,
app.namespace,
Expand Down
8 changes: 4 additions & 4 deletions ui/lib/fonts.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { createGlobalStyle } from "styled-components";
// Typescript will handle type-checking/linting for this file
// @ts-ignore
// @ts-expect-error TODO
import ProximaNovaBold from "url:../fonts/ProximaNovaBold.otf";
// @ts-ignore
// @ts-expect-error TODO
import ProximaNovaRegular from "url:../fonts/ProximaNovaRegular.otf";
// @ts-ignore
// @ts-expect-error TODO
import ProximaNovaSemibold from "url:../fonts/ProximaNovaSemibold.otf";
// @ts-ignore
// @ts-expect-error TODO
import robotomono from "url:../fonts/roboto-mono-regular.woff";

const Fonts = createGlobalStyle`
Expand Down
2 changes: 1 addition & 1 deletion ui/lib/test-utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export function withContext(
});
const isElement = React.isValidElement(TestComponent);
window.matchMedia = jest.fn();
//@ts-ignore
//@ts-expect-error TODO
window.matchMedia.mockReturnValue({ matches: false });
return (
<Router location={url} navigator={history}>
Expand Down

0 comments on commit 86e17a0

Please sign in to comment.