From 6c8d5c129d0cb8310564dccc6af2e98a7da492a7 Mon Sep 17 00:00:00 2001 From: fmtabbara Date: Mon, 8 Jul 2024 18:18:41 +0100 Subject: [PATCH] fix up linting --- explorer-nextjs/.eslintrc.json | 5 ++++- sdk/typescript/packages/react-components/.eslintrc.json | 3 ++- sdk/typescript/packages/sdk-react/src/typings/FC.d.ts | 2 +- .../mix-fetch/template/webpack/tsconfig.json | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/explorer-nextjs/.eslintrc.json b/explorer-nextjs/.eslintrc.json index 957cd1545e..f76f0a2b73 100644 --- a/explorer-nextjs/.eslintrc.json +++ b/explorer-nextjs/.eslintrc.json @@ -1,3 +1,6 @@ { - "extends": ["next/core-web-vitals"] + "extends": ["next/core-web-vitals"], + "rules": { + "react-hooks/exhaustive-deps": "off" + } } diff --git a/sdk/typescript/packages/react-components/.eslintrc.json b/sdk/typescript/packages/react-components/.eslintrc.json index 6ad06640c9..a75c205a3e 100644 --- a/sdk/typescript/packages/react-components/.eslintrc.json +++ b/sdk/typescript/packages/react-components/.eslintrc.json @@ -15,6 +15,7 @@ "allowConstantExport": true } ], - "@typescript-eslint/no-explicit-any": "warn" + "@typescript-eslint/no-explicit-any": "off", + "react-hooks/exhaustive-deps": "off" } } diff --git a/sdk/typescript/packages/sdk-react/src/typings/FC.d.ts b/sdk/typescript/packages/sdk-react/src/typings/FC.d.ts index 08ebdfa298..2e2f5b39e1 100644 --- a/sdk/typescript/packages/sdk-react/src/typings/FC.d.ts +++ b/sdk/typescript/packages/sdk-react/src/typings/FC.d.ts @@ -1 +1 @@ -declare type FCWithChildren

= React.FC>; +declare type FCWithChildren

= React.FC>; diff --git a/sdk/typescript/tests/integration-tests/mix-fetch/template/webpack/tsconfig.json b/sdk/typescript/tests/integration-tests/mix-fetch/template/webpack/tsconfig.json index 2d9ec75afa..1897c7ea42 100644 --- a/sdk/typescript/tests/integration-tests/mix-fetch/template/webpack/tsconfig.json +++ b/sdk/typescript/tests/integration-tests/mix-fetch/template/webpack/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../../../tsconfig.json", + "extends": "../../../../../tsconfig.json", "compilerOptions": { "module": "ESNext", "outDir": "./dist"