Skip to content

Commit 96c84a3

Browse files
committed
chore: cleanup eslint config
1 parent 036c75d commit 96c84a3

File tree

9 files changed

+56
-392
lines changed

9 files changed

+56
-392
lines changed

.eslintrc.json

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"node": true,
55
"jest": true
66
},
7-
"extends": ["eslint:recommended", "prettier", "plugin:unicorn/recommended"],
7+
"extends": ["eslint:recommended", "prettier"],
88
"rules": {
99
"no-console": "error",
1010
"curly": ["error", "all"],
@@ -21,16 +21,7 @@
2121
}
2222
],
2323
"prefer-template": "error",
24-
"arrow-body-style": ["error", "as-needed"],
25-
26-
"unicorn/no-null": "off",
27-
"unicorn/prevent-abbreviations": "off",
28-
"unicorn/prefer-string-slice": "off",
29-
"unicorn/prefer-code-point": "off",
30-
"unicorn/no-array-push-push": "off",
31-
"unicorn/no-for-loop": "off",
32-
"unicorn/consistent-destructuring": "off",
33-
"unicorn/prefer-switch": ["error", { "emptyDefaultCase": "do-nothing-comment" }]
24+
"arrow-body-style": ["error", "as-needed"]
3425
},
3526
"parserOptions": {
3627
"sourceType": "module"
@@ -39,6 +30,7 @@
3930
{
4031
"files": "*.ts",
4132
"extends": [
33+
"eslint:recommended",
4234
"plugin:@typescript-eslint/eslint-recommended",
4335
"plugin:@typescript-eslint/recommended",
4436
"prettier"
@@ -47,8 +39,13 @@
4739
"@typescript-eslint/no-non-null-assertion": "warn",
4840
"@typescript-eslint/no-explicit-any": "warn",
4941
"@typescript-eslint/explicit-function-return-type": "error",
50-
51-
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }]
42+
"@typescript-eslint/no-unused-vars": "off"
43+
}
44+
},
45+
{
46+
"files": "*.test.ts",
47+
"rules": {
48+
"@typescript-eslint/no-non-null-assertion": "off"
5249
}
5350
}
5451
]

0 commit comments

Comments
 (0)