eslint-config-angular-strict 2.3.41 → 2.3.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +22 -63
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -32,41 +32,19 @@ export default [
|
|
|
32
32
|
languageOptions: { parser: tsEslintParser },
|
|
33
33
|
plugins: { '@angular-eslint': angularEslintPlugin },
|
|
34
34
|
rules: {
|
|
35
|
-
// Angular ESLint rules
|
|
35
|
+
// Angular ESLint rules (all preset + overrides)
|
|
36
|
+
...angularEslintPlugin.configs.all.rules,
|
|
36
37
|
'@angular-eslint/component-class-suffix': ['error', { suffixes: ['Component', 'Drawer', 'Modal', 'Page'] }],
|
|
37
|
-
'@angular-eslint/component-
|
|
38
|
-
'@angular-eslint/
|
|
39
|
-
'@angular-eslint/
|
|
40
|
-
'@angular-eslint/
|
|
41
|
-
'@angular-eslint/
|
|
42
|
-
'@angular-eslint/
|
|
43
|
-
'@angular-eslint/
|
|
44
|
-
'@angular-eslint/
|
|
45
|
-
'@angular-eslint/
|
|
46
|
-
'@angular-eslint/
|
|
47
|
-
'@angular-eslint/no-forward-ref': 'error',
|
|
48
|
-
'@angular-eslint/no-implicit-take-until-destroyed': 'error',
|
|
49
|
-
'@angular-eslint/no-input-prefix': ['error', { prefixes: ['on'] }],
|
|
50
|
-
'@angular-eslint/no-input-rename': 'error',
|
|
51
|
-
'@angular-eslint/no-inputs-metadata-property': 'error',
|
|
52
|
-
'@angular-eslint/no-lifecycle-call': 'error',
|
|
53
|
-
'@angular-eslint/no-output-native': 'error',
|
|
54
|
-
'@angular-eslint/no-output-on-prefix': 'error',
|
|
55
|
-
'@angular-eslint/no-output-rename': 'error',
|
|
56
|
-
'@angular-eslint/no-outputs-metadata-property': 'error',
|
|
57
|
-
'@angular-eslint/no-pipe-impure': 'error',
|
|
58
|
-
'@angular-eslint/no-queries-metadata-property': 'error',
|
|
59
|
-
'@angular-eslint/no-uncalled-signals': 'error',
|
|
60
|
-
'@angular-eslint/prefer-host-metadata-property': 'error',
|
|
61
|
-
'@angular-eslint/prefer-output-readonly': 'error',
|
|
62
|
-
'@angular-eslint/prefer-signal-model': 'error',
|
|
63
|
-
'@angular-eslint/prefer-standalone': 'error',
|
|
64
|
-
'@angular-eslint/relative-url-prefix': 'error',
|
|
65
|
-
'@angular-eslint/require-lifecycle-on-prototype': 'error',
|
|
66
|
-
'@angular-eslint/use-component-view-encapsulation': 'error',
|
|
67
|
-
'@angular-eslint/use-injectable-provided-in': 'error',
|
|
68
|
-
'@angular-eslint/use-lifecycle-interface': 'error',
|
|
69
|
-
'@angular-eslint/use-pipe-transform-interface': 'error',
|
|
38
|
+
'@angular-eslint/component-selector': 'off',
|
|
39
|
+
'@angular-eslint/directive-selector': 'off',
|
|
40
|
+
'@angular-eslint/prefer-on-push-component-change-detection': 'off',
|
|
41
|
+
'@angular-eslint/prefer-output-emitter-ref': 'off',
|
|
42
|
+
'@angular-eslint/prefer-signals': 'off',
|
|
43
|
+
'@angular-eslint/require-localize-metadata': 'off',
|
|
44
|
+
'@angular-eslint/runtime-localize': 'off',
|
|
45
|
+
'@angular-eslint/sort-keys-in-type-decorator': 'off',
|
|
46
|
+
'@angular-eslint/sort-lifecycle-methods': 'off',
|
|
47
|
+
'@angular-eslint/use-component-selector': 'off',
|
|
70
48
|
|
|
71
49
|
// ESLint rules
|
|
72
50
|
'class-methods-use-this': 'off',
|
|
@@ -183,38 +161,19 @@ export default [
|
|
|
183
161
|
files: ['**/*.html'],
|
|
184
162
|
languageOptions: { parser: angularTemplateParser },
|
|
185
163
|
rules: {
|
|
186
|
-
// Angular ESLint rules
|
|
164
|
+
// Angular ESLint template rules (all preset + overrides)
|
|
165
|
+
...angularTemplatePlugin.configs.all.rules,
|
|
166
|
+
'@angular-eslint/template/alt-text': 'off',
|
|
187
167
|
'@angular-eslint/template/attributes-order': ['error', { alphabetical: true }],
|
|
188
|
-
'@angular-eslint/template/
|
|
189
|
-
'@angular-eslint/template/
|
|
168
|
+
'@angular-eslint/template/button-has-type': 'off',
|
|
169
|
+
'@angular-eslint/template/click-events-have-key-events': 'off',
|
|
190
170
|
'@angular-eslint/template/cyclomatic-complexity': ['error', { maxComplexity: 10 }],
|
|
191
|
-
'@angular-eslint/template/
|
|
192
|
-
'@angular-eslint/template/
|
|
193
|
-
'@angular-eslint/template/
|
|
194
|
-
'@angular-eslint/template/no-
|
|
195
|
-
'@angular-eslint/template/
|
|
196
|
-
'@angular-eslint/template/no-call-expression': 'error',
|
|
197
|
-
'@angular-eslint/template/no-distracting-elements': 'error',
|
|
198
|
-
'@angular-eslint/template/no-duplicate-attributes': 'error',
|
|
199
|
-
'@angular-eslint/template/no-empty-control-flow': 'error',
|
|
200
|
-
'@angular-eslint/template/no-interpolation-in-attributes': 'error',
|
|
201
|
-
'@angular-eslint/template/no-negated-async': 'error',
|
|
202
|
-
'@angular-eslint/template/no-nested-tags': 'error',
|
|
203
|
-
'@angular-eslint/template/no-non-null-assertion': 'error',
|
|
204
|
-
'@angular-eslint/template/no-positive-tabindex': 'error',
|
|
205
|
-
'@angular-eslint/template/prefer-at-else': 'error',
|
|
206
|
-
'@angular-eslint/template/prefer-at-empty': 'error',
|
|
207
|
-
'@angular-eslint/template/prefer-built-in-pipes': 'error',
|
|
208
|
-
'@angular-eslint/template/prefer-contextual-for-variables': 'error',
|
|
209
|
-
'@angular-eslint/template/prefer-control-flow': 'error',
|
|
210
|
-
'@angular-eslint/template/prefer-self-closing-tags': 'error',
|
|
211
|
-
'@angular-eslint/template/prefer-static-string-properties': 'error',
|
|
212
|
-
'@angular-eslint/template/prefer-template-literal': 'error',
|
|
213
|
-
'@angular-eslint/template/role-has-required-aria': 'error',
|
|
214
|
-
'@angular-eslint/template/table-scope': 'error',
|
|
171
|
+
'@angular-eslint/template/i18n': 'off',
|
|
172
|
+
'@angular-eslint/template/interactive-supports-focus': 'off',
|
|
173
|
+
'@angular-eslint/template/label-has-associated-control': 'off',
|
|
174
|
+
'@angular-eslint/template/no-inline-styles': 'off',
|
|
175
|
+
'@angular-eslint/template/prefer-ngsrc': 'off',
|
|
215
176
|
'@angular-eslint/template/use-track-by-function': ['error', { alias: ['ngForTrackByIndex', 'ngForTrackByProperty'] }],
|
|
216
|
-
'@angular-eslint/template/valid-aria': 'error',
|
|
217
|
-
'@angular-eslint/template/prefer-class-binding': 'error',
|
|
218
177
|
|
|
219
178
|
// Unicorn rules
|
|
220
179
|
'unicorn/prefer-string-raw': 'off',
|