Skip to content

Commit 08566b1

Browse files
committed
chore: strict eslint config
1 parent 741ae2b commit 08566b1

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.eslintrc.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
{
2-
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended-type-checked"],
2+
"extends": [
3+
"eslint:recommended",
4+
"plugin:@typescript-eslint/strict-type-checked",
5+
"plugin:@typescript-eslint/stylistic-type-checked"
6+
],
7+
"ignorePatterns": ["/lib/*.d.ts"],
38
"parserOptions": {
49
"project": true
10+
},
11+
"rules": {
12+
"@typescript-eslint/no-confusing-void-expression": "off",
13+
"@typescript-eslint/restrict-template-expressions": ["error", { "allowNumber": true }],
14+
"@typescript-eslint/strict-boolean-expressions": "error",
15+
"eqeqeq": ["error", "smart"],
16+
"no-else-return": "warn",
17+
"no-implicit-coercion": "warn"
518
}
619
}

0 commit comments

Comments
 (0)