Skip to content

Commit 4b00e4f

Browse files
committed
Update .eslintrc
1 parent bec313e commit 4b00e4f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.eslintrc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"globals": {
1313
"globalThis": false
1414
},
15+
"reportUnusedDisableDirectives": true,
1516
"rules": {
1617
"class-methods-use-this": "off",
1718
"consistent-return": "off",
@@ -30,7 +31,7 @@
3031
"no-object-constructor": "error",
3132
"no-param-reassign": "off",
3233
"no-plusplus": "off",
33-
"no-restricted-syntax": "off",
34+
"no-restricted-syntax": ["error", "LabeledStatement", "WithStatement"],
3435
"no-return-assign": "off",
3536
"no-shadow": "off",
3637
"no-throw-literal": "off",
@@ -39,10 +40,7 @@
3940
"no-use-before-define": "off",
4041
"prefer-const": "off",
4142
"prefer-destructuring": ["error", { "object": true, "array": false }],
42-
"prefer-rest-params": "off",
43-
"prefer-promise-reject-errors": "off",
4443
"import/extensions": ["error", "always"],
45-
"import/no-cycle": "off",
4644
"import/no-extraneous-dependencies": "off",
4745
"import/prefer-default-export": "off"
4846
},
@@ -53,6 +51,7 @@
5351
"rules": {
5452
"@typescript-eslint/no-shadow": "off",
5553
"@typescript-eslint/no-unused-expressions": "off",
54+
"@typescript-eslint/no-use-before-define": "off",
5655
"import/extensions": ["error", "always"],
5756
"import/no-cycle": "off"
5857
}

0 commit comments

Comments
 (0)