Skip to content

Commit 05e9e18

Browse files
committed
Simplify eslint override
1 parent c608459 commit 05e9e18

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

.eslintrc

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,29 @@
2424
},
2525
"project": "tsconfig.eslint.json"
2626
},
27-
"plugins": ["deprecation", "@typescript-eslint"],
27+
"plugins": [
28+
"deprecation",
29+
"@typescript-eslint"
30+
],
2831
"rules": {
2932
"deprecation/deprecation": "warn",
3033
"no-console": "error",
31-
"curly": ["error", "all"],
34+
"curly": [
35+
"error",
36+
"all"
37+
],
3238
"no-underscore-dangle": "off",
33-
"import/no-extraneous-dependencies": "off",
3439
"import/prefer-default-export": "off",
3540
"react/prop-types": "off",
3641
"react/jsx-props-no-spreading": "off",
3742
"react/jsx-key": "error",
3843
"react/jsx-filename-extension": [
3944
"error",
4045
{
41-
"extensions": [".js", ".tsx"]
46+
"extensions": [
47+
".js",
48+
".tsx"
49+
]
4250
}
4351
],
4452
"react/function-component-definition": [
@@ -64,13 +72,5 @@
6472
}
6573
}
6674
]
67-
},
68-
"overrides": [
69-
{
70-
"files": ["src/**/*.{ts,tsx}"],
71-
"rules": {
72-
"import/no-extraneous-dependencies": "error"
73-
}
74-
}
75-
]
75+
}
7676
}

tsup.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable import/no-extraneous-dependencies */
12
import { defineConfig } from "tsup";
23

34
export default defineConfig({

0 commit comments

Comments
 (0)