Skip to content

Commit d0611d1

Browse files
authored
Update eslint rules (#592)
* Update lint * Lint fixes
1 parent b1996e4 commit d0611d1

File tree

7 files changed

+954
-910
lines changed

7 files changed

+954
-910
lines changed

.eslintrc.json

+23-13
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,33 @@
88
"BigInt64Array": "readonly",
99
"BigUInt64Array": "readonly"
1010
},
11+
"env": {
12+
"jest/globals": true
13+
},
1114

12-
"extends": [ "plugin:jest/recommended", "./node_modules/eslint-config-mdcs/index.js" ],
1315
"plugins": [ "jest" ],
16+
"extends": [ "eslint:recommended", "plugin:jest/recommended", "./node_modules/eslint-config-mdcs/index.js" ],
1417

1518
"rules": {
19+
"no-inner-declarations": "off",
20+
"padding-line-between-statements": "off",
21+
"no-constant-condition": "off",
22+
// "no-constant-condition": [ "error", { "checkLoops": "exceptWhileTrue" } ],
23+
1624
"no-unused-vars": [ 1, { "args": "none" } ],
17-
"no-throw-literal": [
18-
"error"
19-
],
20-
"no-const-assign": "error",
21-
"prefer-const": [
22-
"error",
23-
{
24-
"destructuring": "any",
25-
"ignoreReadBeforeAssign": false
26-
}
27-
],
25+
"no-throw-literal": [ "error" ],
26+
"prefer-const": [ "error", { "destructuring": "any", "ignoreReadBeforeAssign": false } ],
2827
"quotes": [ "error", "single" ]
29-
}
28+
},
29+
"overrides": [
30+
{
31+
"files": [ "*.ts" ],
32+
"parser": "@typescript-eslint/parser",
33+
"plugins": [ "@typescript-eslint" ],
34+
"rules": {
35+
"no-unused-vars": [ "error", { "args": "none" } ],
36+
"indent": [ 2, 2 ]
37+
}
38+
}
39+
]
3040
}

0 commit comments

Comments
 (0)