diff --git a/.eslintrc.json b/.eslintrc.json index 13211eef4..6acaf233c 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -21,6 +21,11 @@ }, "parser": "@typescript-eslint/parser", "parserOptions": { + "project": [ + "./tsconfig.app.json", + "./tsconfig.node.json", + "./cypress/tsconfig.json" + ], "ecmaFeatures": { "jsx": true }, @@ -60,6 +65,7 @@ } ], "import/no-named-as-default": "off", + "import/extensions": "off", "react/static-property-placement": [ "error", "property assignment", @@ -79,16 +85,6 @@ "allow": ["error"] } ], - "import/extensions": [ - "error", - "ignorePackages", - { - "js": "never", - "jsx": "never", - "ts": "never", - "tsx": "never" - } - ], "react/prop-types": "off", "react/require-default-props": "off", // eslint rule reports false error @@ -109,7 +105,8 @@ "devDependencies": true } ], - "import/prefer-default-export": "off" + "import/prefer-default-export": "off", + "import/no-unresolved": "off" }, "overrides": [ { diff --git a/.vscode/settings.json b/.vscode/settings.json index 36ce81cad..7b0d97922 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,4 @@ { - "files.trimTrailingWhitespace": true + "files.trimTrailingWhitespace": true, + "eslint.useFlatConfig": false } diff --git a/cypress/tsconfig.json b/cypress/tsconfig.json index 942e14de6..60674da22 100644 --- a/cypress/tsconfig.json +++ b/cypress/tsconfig.json @@ -2,25 +2,12 @@ "extends": "../tsconfig.app.json", "compilerOptions": { "target": "es5", - "lib": [ - "es5", - "dom", - "ES2021.String" - ], - "types": [ - "cypress", - "node", - "vite/client" - ], + "lib": ["es5", "dom", "ES2021.String"], + "types": ["cypress", "node", "vite/client"], "strictNullChecks": true, "strict": true, "sourceMap": false }, - "include": [ - "**/*.ts" - ], - "exclude": [ - "coverage", - ".nyc_output" - ] + "include": ["**/*.ts", "../cypress.config.ts"], + "exclude": ["coverage", ".nyc_output"] } diff --git a/src/modules/settings/ExportData.tsx b/src/modules/settings/ExportData.tsx index d94bd3c32..3aa4e78fe 100644 --- a/src/modules/settings/ExportData.tsx +++ b/src/modules/settings/ExportData.tsx @@ -1,4 +1,4 @@ -import React, { useState } from 'react'; +import { useState } from 'react'; import { Button, Stack, Typography } from '@mui/material'; diff --git a/tsconfig.node.json b/tsconfig.node.json index 9dbaccb54..ddefd78dd 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -19,6 +19,7 @@ "noFallthroughCasesInSwitch": true }, "include": [ + "vite-env.d.ts", "vite.config.ts" ] }