eslint-config-angular-strict 2.3.64 → 2.3.66

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.
Binary file
package/README.md CHANGED
@@ -33,8 +33,7 @@ A production-ready, opinionated ESLint configuration that enforces best practice
33
33
  - <img src="https://eslint-airbnb-extended.nishargshah.dev/logo.png" width="16" height="16"> [**Airbnb Extended**](https://github.com/nishargshah/eslint-config-airbnb-extended) - Airbnb style guide
34
34
  - <img src="https://avatars.githubusercontent.com/u/53234240?s=48&" width="16" height="16"> [**Angular ESLint**](https://github.com/angular-eslint/angular-eslint) - Angular-specific rules
35
35
  - <img src="https://eslint.org/icon-512.png" width="16" height="16"> [**ESLint**](https://github.com/eslint/eslint) - Core linting engine
36
- - 📦 [**Import-X**](https://github.com/un-ts/eslint-plugin-import-x) - Import/export validation
37
- - 🔤 [**NgModule Sort**](https://github.com/ducktordanny/eslint-plugin-ng-module-sort) - Angular sorting
36
+ - 📦 [**Import-X**](https://github.com/un-ts/eslint-plugin-import-x) - Import/export validation and cycle detection
38
37
  - <img src="https://raw.githubusercontent.com/azat-io/eslint-plugin-perfectionist/main/docs/public/logo.svg" width="16" height="16"> [**Perfectionist**](https://github.com/azat-io/eslint-plugin-perfectionist) - Take Your Code to a Beauty Salon
39
38
  - <img src="https://avatars.githubusercontent.com/u/144717797?s=48&" width="16" height="16"> [**Stylistic**](https://github.com/eslint-stylistic/eslint-stylistic) - Code formatting rules
40
39
  - <img src="https://avatars.githubusercontent.com/u/46634674?s=48&" width="16" height="16"> [**TypeScript ESLint**](https://github.com/typescript-eslint/typescript-eslint) - TypeScript linting
package/index.js CHANGED
@@ -3,7 +3,6 @@ import angularEslintPlugin from '@angular-eslint/eslint-plugin';
3
3
  import angularTemplateParser from '@angular-eslint/template-parser';
4
4
  import angularTemplatePlugin from '@angular-eslint/eslint-plugin-template';
5
5
  import importXPlugin from 'eslint-plugin-import-x';
6
- import ngModuleSortPlugin from 'eslint-plugin-ng-module-sort';
7
6
  import perfectionistPlugin from 'eslint-plugin-perfectionist';
8
7
  import stylistic from '@stylistic/eslint-plugin';
9
8
  import tsEslintParser from '@typescript-eslint/parser';
@@ -18,7 +17,6 @@ export default [
18
17
  '@stylistic': stylistic,
19
18
  '@typescript-eslint': tsEslintPlugin,
20
19
  'import-x': importXPlugin,
21
- 'ng-module-sort': ngModuleSortPlugin,
22
20
  },
23
21
  settings: { perfectionist: { type: 'natural' } },
24
22
  },
@@ -45,7 +43,7 @@ export default [
45
43
  // ESLint rules
46
44
  'class-methods-use-this': 'off',
47
45
  'complexity': ['error', { max: 25 }],
48
- 'max-lines': ['error', { max: 400, skipBlankLines: true, skipComments: true }],
46
+ 'max-lines': ['error', { max: 425, skipBlankLines: true, skipComments: true }],
49
47
  'no-fallthrough': 'off',
50
48
  'no-param-reassign': ['error', { props: false }],
51
49
  'no-plusplus': 'off',
@@ -62,8 +60,6 @@ export default [
62
60
  'import-x/order': 'off',
63
61
  'import-x/prefer-default-export': 'off',
64
62
 
65
- // NgModule sort rules
66
- 'ng-module-sort/decorator-array-items': 'error',
67
63
 
68
64
  // Stylistic rules
69
65
  '@stylistic/array-element-newline': ['error', { consistent: true, multiline: true }],
@@ -203,6 +199,14 @@ export default [
203
199
  ],
204
200
  },
205
201
  ],
202
+ 'perfectionist/sort-arrays': [
203
+ 'error',
204
+ {
205
+ useConfigurationIf: {
206
+ matchesAstSelector: 'Property[key.name=/^(hostDirectives|imports|providers)$/] > ArrayExpression',
207
+ },
208
+ },
209
+ ],
206
210
  'perfectionist/sort-intersection-types': ['error', { groups: ['unknown', 'nullish'] }],
207
211
  'perfectionist/sort-objects': [
208
212
  'error',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-angular-strict",
3
- "version": "2.3.64",
3
+ "version": "2.3.66",
4
4
  "description": "Modern ESLint configuration with strict rules for Angular development.",
5
5
  "keywords": [
6
6
  "angular",
@@ -47,7 +47,6 @@
47
47
  "eslint": "9.39.4",
48
48
  "eslint-config-airbnb-extended": "3.0.1",
49
49
  "eslint-plugin-import-x": "4.16.2",
50
- "eslint-plugin-ng-module-sort": "1.4.0",
51
50
  "eslint-plugin-perfectionist": "5.8.0",
52
51
  "eslint-plugin-unicorn": "64.0.0"
53
52
  },