eslint-config-angular-strict 2.3.96 → 22.0.0

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.
Files changed (2) hide show
  1. package/index.js +5 -2
  2. package/package.json +12 -12
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.configs.all.rules,
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.configs.all.rules,
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,13 +1,13 @@
1
1
  {
2
2
  "name": "eslint-config-angular-strict",
3
- "version": "2.3.96",
3
+ "version": "22.0.0",
4
4
  "description": "Modern ESLint configuration with strict rules for Angular development.",
5
5
  "keywords": [
6
6
  "angular",
7
7
  "eslint",
8
8
  "eslint-config",
9
9
  "eslint-plugin",
10
- "eslint9",
10
+ "eslint10",
11
11
  "flat-config",
12
12
  "linting-rules",
13
13
  "strict-rules",
@@ -35,23 +35,23 @@
35
35
  "test": "cd tests && yarn install && eslint . --format=stylish"
36
36
  },
37
37
  "dependencies": {
38
- "@angular-eslint/builder": "21.4.0",
39
- "@angular-eslint/eslint-plugin": "21.4.0",
40
- "@angular-eslint/eslint-plugin-template": "21.4.0",
41
- "@angular-eslint/template-parser": "21.4.0",
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.60.1",
44
- "@typescript-eslint/parser": "8.60.1",
45
- "@typescript-eslint/types": "8.60.1",
46
- "@typescript-eslint/utils": "8.60.1",
47
- "eslint": "9.39.4",
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
+ "eslint": "10.4.1",
48
48
  "eslint-config-airbnb-extended": "3.1.0",
49
49
  "eslint-plugin-import-x": "4.16.2",
50
50
  "eslint-plugin-perfectionist": "5.9.0",
51
51
  "eslint-plugin-unicorn": "65.0.1"
52
52
  },
53
53
  "devDependencies": {
54
- "typescript": "5.9.3"
54
+ "typescript": "6.0.3"
55
55
  },
56
56
  "packageManager": "yarn@4.16.0+sha512.5374c94eb4ef6aa8188fb112f20c1aa6569f248d676c5e576e1fd2a1a4d8d87a96df65d9dfe1c2a0252cbe38bda46cf18d955005b81b43cc7607a5c9d56fd2b6"
57
57
  }