eslint-config-angular-strict 2.3.96 → 2.3.97
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 +5 -2
- package/package.json +9 -9
package/index.js
CHANGED
|
@@ -11,6 +11,9 @@ import unicornPlugin from 'eslint-plugin-unicorn';
|
|
|
11
11
|
|
|
12
12
|
import { namingConventionOverrides, noRestrictedSyntaxRule } from './naming-conventions.js';
|
|
13
13
|
|
|
14
|
+
// @angular-eslint v22 dropped the `configs` export — manually enable all rules instead
|
|
15
|
+
const enableAllRules = (plugin, prefix) => Object.fromEntries(Object.keys(plugin.rules).map(k => [`${prefix}/${k}`, 'error']));
|
|
16
|
+
|
|
14
17
|
export default [
|
|
15
18
|
{
|
|
16
19
|
ignores: ['dist/**', 'node_modules/**'],
|
|
@@ -36,7 +39,7 @@ export default [
|
|
|
36
39
|
plugins: { '@angular-eslint': angularEslintPlugin },
|
|
37
40
|
rules: {
|
|
38
41
|
// Angular ESLint rules (all preset + overrides)
|
|
39
|
-
...angularEslintPlugin
|
|
42
|
+
...enableAllRules(angularEslintPlugin, '@angular-eslint'),
|
|
40
43
|
'@angular-eslint/component-class-suffix': ['error', { suffixes: ['App', 'Component', 'Drawer', 'Modal', 'Page'] }],
|
|
41
44
|
'@angular-eslint/component-selector': 'off',
|
|
42
45
|
'@angular-eslint/prefer-on-push-component-change-detection': 'off',
|
|
@@ -289,7 +292,7 @@ export default [
|
|
|
289
292
|
languageOptions: { parser: angularTemplateParser },
|
|
290
293
|
rules: {
|
|
291
294
|
// Angular ESLint template rules (all preset + overrides)
|
|
292
|
-
...angularTemplatePlugin
|
|
295
|
+
...enableAllRules(angularTemplatePlugin, '@angular-eslint/template'),
|
|
293
296
|
'@angular-eslint/template/alt-text': 'off',
|
|
294
297
|
'@angular-eslint/template/attributes-order': ['error', { alphabetical: true }],
|
|
295
298
|
'@angular-eslint/template/button-has-type': 'off',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-angular-strict",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.97",
|
|
4
4
|
"description": "Modern ESLint configuration with strict rules for Angular development.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
"test": "cd tests && yarn install && eslint . --format=stylish"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@angular-eslint/builder": "
|
|
39
|
-
"@angular-eslint/eslint-plugin": "
|
|
40
|
-
"@angular-eslint/eslint-plugin-template": "
|
|
41
|
-
"@angular-eslint/template-parser": "
|
|
38
|
+
"@angular-eslint/builder": "22.0.0",
|
|
39
|
+
"@angular-eslint/eslint-plugin": "22.0.0",
|
|
40
|
+
"@angular-eslint/eslint-plugin-template": "22.0.0",
|
|
41
|
+
"@angular-eslint/template-parser": "22.0.0",
|
|
42
42
|
"@stylistic/eslint-plugin": "5.10.0",
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
44
|
-
"@typescript-eslint/parser": "8.
|
|
45
|
-
"@typescript-eslint/types": "8.
|
|
46
|
-
"@typescript-eslint/utils": "8.
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "8.61.0",
|
|
44
|
+
"@typescript-eslint/parser": "8.61.0",
|
|
45
|
+
"@typescript-eslint/types": "8.61.0",
|
|
46
|
+
"@typescript-eslint/utils": "8.61.0",
|
|
47
47
|
"eslint": "9.39.4",
|
|
48
48
|
"eslint-config-airbnb-extended": "3.1.0",
|
|
49
49
|
"eslint-plugin-import-x": "4.16.2",
|