eslint-config-angular-strict 2.0.1 → 2.0.3

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 (3) hide show
  1. package/README.md +12 -0
  2. package/index.js +10 -10
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -48,6 +48,18 @@ yarn add eslint-config-angular-strict --dev
48
48
 
49
49
  **⚠️ Important**: Remove any existing `eslint` dependency from your project - it's included!
50
50
 
51
+ ## Package.json Configuration
52
+
53
+ **Required**: Add to your `package.json`:
54
+
55
+ ```json
56
+ {
57
+ "type": "module"
58
+ }
59
+ ```
60
+
61
+ This is mandatory because eslint-config-angular-strict uses ES modules.
62
+
51
63
  ## Configure ESLint
52
64
 
53
65
  Create an `eslint.config.js` file (ESLint 9 flat config format):
package/index.js CHANGED
@@ -89,15 +89,15 @@ export default [
89
89
  '@stylistic/space-infix-ops': 'error',
90
90
 
91
91
  // Import rules
92
- 'import/extensions': ['error', 'ignorePackages', { ts: 'never' }],
93
- 'import/no-anonymous-default-export': 'error',
94
- 'import/no-commonjs': 'error',
95
- 'import/no-cycle': ['error', { maxDepth: 2 }],
96
- 'import/no-deprecated': 'error',
97
- 'import/no-empty-named-blocks': 'error',
98
- 'import/no-import-module-exports': 'off',
99
- 'import/no-named-as-default-member': 'error',
100
- 'import/order': [
92
+ 'import-x/extensions': ['error', 'ignorePackages', { ts: 'never' }],
93
+ 'import-x/no-anonymous-default-export': 'error',
94
+ 'import-x/no-commonjs': 'error',
95
+ 'import-x/no-cycle': ['error', { maxDepth: 2 }],
96
+ 'import-x/no-deprecated': 'error',
97
+ 'import-x/no-empty-named-blocks': 'error',
98
+ 'import-x/no-import-module-exports': 'off',
99
+ 'import-x/no-named-as-default-member': 'error',
100
+ 'import-x/order': [
101
101
  'error',
102
102
  {
103
103
  alphabetize: { order: 'asc', caseInsensitive: true },
@@ -113,7 +113,7 @@ export default [
113
113
  warnOnUnassignedImports: true,
114
114
  },
115
115
  ],
116
- 'import/prefer-default-export': 'off',
116
+ 'import-x/prefer-default-export': 'off',
117
117
 
118
118
  // General rules
119
119
  'arrow-parens': ['error', 'as-needed', { requireForBlockBody: true }],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-angular-strict",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "Modern ESLint configuration with strict rules for Angular development.",
5
5
  "keywords": [
6
6
  "angular",
@@ -32,6 +32,7 @@
32
32
  ".": "./index.js"
33
33
  },
34
34
  "dependencies": {
35
+ "@angular-eslint/builder": "20.3.0",
35
36
  "@angular-eslint/eslint-plugin": "20.3.0",
36
37
  "@angular-eslint/eslint-plugin-template": "20.3.0",
37
38
  "@angular-eslint/template-parser": "20.3.0",
@@ -44,7 +45,6 @@
44
45
  "eslint-plugin-import-x": "4.16.1"
45
46
  },
46
47
  "devDependencies": {
47
- "@angular-eslint/builder": "20.3.0",
48
48
  "typescript": "5.9.2"
49
49
  },
50
50
  "packageManager": "yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"