Skip to content

Commit eec6010

Browse files
committed
feat: add more typescript rules
1 parent 8d44e2a commit eec6010

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

src/typescript.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,28 @@ const pluginTypeScriptRulesExtra = {
1010
"@typescript-eslint/member-delimiter-style": "off",
1111
"@typescript-eslint/no-inferrable-types": "off",
1212
"@typescript-eslint/no-non-null-assertion": "off",
13+
"no-shadow": "off",
14+
"@typescript-eslint/no-shadow": "error",
15+
"@typescript-eslint/no-dynamic-delete": "error",
16+
"@typescript-eslint/no-extraneous-class": "error",
17+
"@typescript-eslint/no-floating-promises": "error",
18+
"@typescript-eslint/no-parameter-properties": "error",
19+
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
20+
"@typescript-eslint/no-unnecessary-condition": "error",
21+
"@typescript-eslint/no-unnecessary-qualifier": "error",
22+
// "@typescript-eslint/no-unnecessary-type-arguments": "error",
23+
"@typescript-eslint/no-unnecessary-type-constraint": "error",
24+
"@typescript-eslint/no-unsafe-argument": "error",
25+
// "@typescript-eslint/prefer-function-type": "error",
26+
"@typescript-eslint/prefer-includes": "error",
27+
// "@typescript-eslint/prefer-literal-enum-member": "error",
28+
"@typescript-eslint/prefer-nullish-coalescing": "error",
29+
"@typescript-eslint/prefer-optional-chain": "error",
30+
"@typescript-eslint/prefer-reduce-type-parameter": "error",
31+
// "@typescript-eslint/prefer-string-starts-ends-with": "error",
32+
"@typescript-eslint/require-array-sort-compare": "error",
33+
"@typescript-eslint/strict-boolean-expressions": "error",
34+
"@typescript-eslint/switch-exhaustiveness-check": "warn",
1335
}
1436

1537
exports.tsConfig = {

0 commit comments

Comments
 (0)