Skip to content

Commit 1ea4428

Browse files
Turn off ESLint rules handled by TypeScript
1 parent f61f4dc commit 1ea4428

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

eslint.config.mjs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,19 @@ export default defineConfig([
3030
tsconfigRootDir: rootPath,
3131
},
3232
},
33+
rules: {
34+
// Turn off rules that are handled by TypeScript
35+
// https://typescript-eslint.io/troubleshooting/typed-linting/performance/#eslint-plugin-import
36+
'import/default': 'off',
37+
'import/named': 'off',
38+
'import/namespace': 'off',
39+
'import/no-cycle': 'off',
40+
'import/no-deprecated': 'off',
41+
'import/no-named-as-default': 'off',
42+
'import/no-named-as-default-member': 'off',
43+
'import/no-unresolved': 'off',
44+
'import/no-unused-modules': 'off',
45+
},
3346
settings: {
3447
'import/resolver': {
3548
node: true,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"lint:fix": "yarn lint:js:fix && yarn lint:prettier:fix",
5959
"lint:prettier": "prettier --check .",
6060
"lint:prettier:fix": "prettier --write .",
61-
"lint:js": "eslint .",
61+
"lint:js": "eslint . --max-warnings 0",
6262
"lint:js:fix": "yarn lint:js --fix",
6363
"lint:types": "tsc --build tsconfig.json --pretty",
6464
"build-storybook": "storybook build",

tsconfig.base.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"module": "ESNext",
77
"moduleResolution": "Bundler",
88
"noEmit": true,
9+
"noUnusedLocals": true,
910
"resolveJsonModule": true,
1011
"skipLibCheck": true,
1112
"strict": false,

0 commit comments

Comments
 (0)