|
17 | 17 | ], |
18 | 18 | "rules": { |
19 | 19 | "no-console": "error", |
20 | | - "prefer-const": "warn", |
| 20 | + "prefer-const": "error", |
21 | 21 | "no-param-reassign": "error", |
22 | 22 | "no-else-return": "error", |
23 | 23 | "max-len": [ |
|
30 | 30 | "ignoreRegExpLiterals": true |
31 | 31 | } |
32 | 32 | ], |
33 | | - "class-methods-use-this": "warn", |
| 33 | + "class-methods-use-this": "error", |
34 | 34 | "no-magic-numbers": "off", // must disable the base rule as it can report incorrect errors |
35 | 35 | "@typescript-eslint/no-magic-numbers": [ |
36 | 36 | "error", |
|
43 | 43 | "@typescript-eslint/explicit-module-boundary-types": "off", |
44 | 44 | "@typescript-eslint/no-explicit-any": "off", |
45 | 45 | "@typescript-eslint/no-unused-vars": [ |
46 | | - "warn", |
| 46 | + "error", |
47 | 47 | { "argsIgnorePattern": "^_" } |
48 | 48 | ], |
49 | 49 | "@typescript-eslint/array-type": "error", |
50 | 50 | "no-constant-condition": "off", |
51 | 51 | "@typescript-eslint/no-unnecessary-condition": [ |
52 | | - "warn", |
| 52 | + "error", |
53 | 53 | { |
54 | 54 | "allowConstantLoopConditions": true |
55 | 55 | } |
56 | 56 | ], |
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", |
68 | 68 | "@typescript-eslint/promise-function-async": [ |
69 | | - "warn", |
| 69 | + "error", |
70 | 70 | { "checkArrowFunctions": false } |
71 | 71 | ], |
72 | 72 | "@angular-eslint/component-class-suffix": [ |
|
91 | 91 | "style": "camelCase" |
92 | 92 | } |
93 | 93 | ], |
94 | | - "rxjs/finnish": "warn", |
| 94 | + "rxjs/finnish": "error", |
95 | 95 | "rxjs/no-ignored-notifier": "off" |
96 | 96 | } |
97 | 97 | }, |
|
0 commit comments