Skip to content

Commit

Permalink
chore: update eslint config and fix changes
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverDudgeon committed Jan 5, 2025
1 parent 64c314d commit b6845fb
Show file tree
Hide file tree
Showing 7 changed files with 589 additions and 382 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
"devDependencies": {
"@next/bundle-analyzer": "15.0.3",
"@playwright/test": "1.49.1",
"@squonk/eslint-config": "2.0.1",
"@squonk/eslint-config": "2.1.0",
"dotenv": "16.4.7",
"eslint": "8.57.1",
"husky": "9.1.7",
Expand Down
959 changes: 583 additions & 376 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/FileSelector/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from "./FileSelector";
export * from "./types";
export type * from "./types";
2 changes: 1 addition & 1 deletion src/features/DatasetsTable/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from "./DatasetsTable";
export * from "./types";
export type * from "./types";
2 changes: 1 addition & 1 deletion src/layouts/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import A from "next/link";
import { AppVersions } from "../components/AppVersions";

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

return (
Expand Down
2 changes: 1 addition & 1 deletion src/pages/project/file.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const getServerSideProps: GetServerSideProps<FileProps> = async (ctx) =>
};

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

const { query } = useRouter();

Expand Down
2 changes: 1 addition & 1 deletion types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ declare global {
var ketcher: Ketcher | undefined;
}

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

0 comments on commit b6845fb

Please sign in to comment.