Skip to content

Commit 4b3c3c3

Browse files
committed
Change linting rules to error.
1 parent eab32c4 commit 4b3c3c3

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

.eslintrc.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
],
1818
"rules": {
1919
"no-console": "error",
20-
"prefer-const": "warn",
20+
"prefer-const": "error",
2121
"no-param-reassign": "error",
2222
"no-else-return": "error",
2323
"max-len": [
@@ -30,7 +30,7 @@
3030
"ignoreRegExpLiterals": true
3131
}
3232
],
33-
"class-methods-use-this": "warn",
33+
"class-methods-use-this": "error",
3434
"no-magic-numbers": "off", // must disable the base rule as it can report incorrect errors
3535
"@typescript-eslint/no-magic-numbers": [
3636
"error",
@@ -43,30 +43,30 @@
4343
"@typescript-eslint/explicit-module-boundary-types": "off",
4444
"@typescript-eslint/no-explicit-any": "off",
4545
"@typescript-eslint/no-unused-vars": [
46-
"warn",
46+
"error",
4747
{ "argsIgnorePattern": "^_" }
4848
],
4949
"@typescript-eslint/array-type": "error",
5050
"no-constant-condition": "off",
5151
"@typescript-eslint/no-unnecessary-condition": [
52-
"warn",
52+
"error",
5353
{
5454
"allowConstantLoopConditions": true
5555
}
5656
],
57-
"@typescript-eslint/no-unnecessary-qualifier": "warn",
58-
"@typescript-eslint/no-unnecessary-type-arguments": "warn",
59-
"@typescript-eslint/prefer-for-of": "warn",
60-
"@typescript-eslint/prefer-function-type": "warn",
61-
"@typescript-eslint/prefer-includes": "warn",
62-
"@typescript-eslint/prefer-nullish-coalescing": "warn",
63-
"@typescript-eslint/prefer-optional-chain": "warn",
64-
"@typescript-eslint/prefer-readonly": "warn",
65-
"@typescript-eslint/prefer-as-const": "warn",
66-
"@typescript-eslint/prefer-string-starts-ends-with": "warn",
67-
"@typescript-eslint/prefer-ts-expect-error": "warn",
57+
"@typescript-eslint/no-unnecessary-qualifier": "error",
58+
"@typescript-eslint/no-unnecessary-type-arguments": "error",
59+
"@typescript-eslint/prefer-for-of": "error",
60+
"@typescript-eslint/prefer-function-type": "error",
61+
"@typescript-eslint/prefer-includes": "error",
62+
"@typescript-eslint/prefer-nullish-coalescing": "error",
63+
"@typescript-eslint/prefer-optional-chain": "error",
64+
"@typescript-eslint/prefer-readonly": "error",
65+
"@typescript-eslint/prefer-as-const": "error",
66+
"@typescript-eslint/prefer-string-starts-ends-with": "error",
67+
"@typescript-eslint/prefer-ts-expect-error": "error",
6868
"@typescript-eslint/promise-function-async": [
69-
"warn",
69+
"error",
7070
{ "checkArrowFunctions": false }
7171
],
7272
"@angular-eslint/component-class-suffix": [
@@ -91,7 +91,7 @@
9191
"style": "camelCase"
9292
}
9393
],
94-
"rxjs/finnish": "warn",
94+
"rxjs/finnish": "error",
9595
"rxjs/no-ignored-notifier": "off"
9696
}
9797
},

0 commit comments

Comments
 (0)