Skip to content

Commit b6845fb

Browse files
committed
chore: update eslint config and fix changes
1 parent 64c314d commit b6845fb

File tree

7 files changed

+589
-382
lines changed

7 files changed

+589
-382
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
"devDependencies": {
106106
"@next/bundle-analyzer": "15.0.3",
107107
"@playwright/test": "1.49.1",
108-
"@squonk/eslint-config": "2.0.1",
108+
"@squonk/eslint-config": "2.1.0",
109109
"dotenv": "16.4.7",
110110
"eslint": "8.57.1",
111111
"husky": "9.1.7",

pnpm-lock.yaml

Lines changed: 583 additions & 376 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export * from "./FileSelector";
2-
export * from "./types";
2+
export type * from "./types";
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export * from "./DatasetsTable";
2-
export * from "./types";
2+
export type * from "./types";

src/layouts/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import A from "next/link";
1414
import { AppVersions } from "../components/AppVersions";
1515

1616
export const Footer = () => {
17-
const small = useMediaQuery<Theme>((theme) => theme.breakpoints.up("sm"));
17+
const small = useMediaQuery((theme: Theme) => theme.breakpoints.up("sm"));
1818
const itemStyles = { justifyContent: small ? "right" : "left" };
1919

2020
return (

src/pages/project/file.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const getServerSideProps: GetServerSideProps<FileProps> = async (ctx) =>
4848
};
4949

5050
export const File = (props: FileProps) => {
51-
const biggerThanSm = useMediaQuery<Theme>((theme) => theme.breakpoints.up("sm"));
51+
const biggerThanSm = useMediaQuery((theme: Theme) => theme.breakpoints.up("sm"));
5252

5353
const { query } = useRouter();
5454

types/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ declare global {
66
var ketcher: Ketcher | undefined;
77
}
88

9-
// eslint-disable-next-line @typescript-eslint/ban-types
9+
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
1010
export type Resolve<T> = T extends Function ? T : { [K in keyof T]: T[K] };

0 commit comments

Comments
 (0)