eslint-config-angular-strict 2.3.95 → 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.
Files changed (2) hide show
  1. package/index.js +8 -2
  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.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',
@@ -275,8 +278,11 @@ export default [
275
278
  'unicorn/no-abusive-eslint-disable': 'off',
276
279
  'unicorn/no-array-for-each': 'off',
277
280
  'unicorn/no-null': 'off',
281
+ 'unicorn/prefer-includes-over-repeated-comparisons': ['error', { minimumComparisons: 6 }],
282
+ 'unicorn/prefer-split-limit': 'off',
278
283
  'unicorn/prefer-top-level-await': 'off',
279
284
  'unicorn/switch-case-braces': ['error', 'avoid'],
285
+ 'unicorn/try-complexity': ['error', { max: 5 }],
280
286
  },
281
287
  },
282
288
 
@@ -286,7 +292,7 @@ export default [
286
292
  languageOptions: { parser: angularTemplateParser },
287
293
  rules: {
288
294
  // Angular ESLint template rules (all preset + overrides)
289
- ...angularTemplatePlugin.configs.all.rules,
295
+ ...enableAllRules(angularTemplatePlugin, '@angular-eslint/template'),
290
296
  '@angular-eslint/template/alt-text': 'off',
291
297
  '@angular-eslint/template/attributes-order': ['error', { alphabetical: true }],
292
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.95",
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": "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",
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",