@mikey-pro/eslint-config-angular 9.0.7 → 10.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.
- package/index.js +10 -6
- package/package.json +7 -14
package/index.js
CHANGED
|
@@ -2,17 +2,19 @@
|
|
|
2
2
|
import angular from '@angular-eslint/eslint-plugin';
|
|
3
3
|
import angularTemplate from '@angular-eslint/eslint-plugin-template';
|
|
4
4
|
import angularTemplateParser from '@angular-eslint/template-parser';
|
|
5
|
-
import
|
|
5
|
+
import tsParser from '@typescript-eslint/parser';
|
|
6
|
+
import { baseConfig, globalPlugins } from '../eslint-config/base-config.js';
|
|
6
7
|
import { baseOverrides } from '../eslint-config/overrides.js';
|
|
7
8
|
|
|
8
9
|
// Angular-specific configuration
|
|
9
10
|
const angularConfig = {
|
|
10
11
|
files: ['**/*.ts'],
|
|
11
12
|
languageOptions: {
|
|
12
|
-
parser:
|
|
13
|
+
parser: tsParser,
|
|
13
14
|
parserOptions: {
|
|
14
|
-
|
|
15
|
+
ecmaVersion: 'latest',
|
|
15
16
|
project: './tsconfig.json',
|
|
17
|
+
sourceType: 'module',
|
|
16
18
|
},
|
|
17
19
|
},
|
|
18
20
|
plugins: {
|
|
@@ -51,7 +53,7 @@ const angularConfig = {
|
|
|
51
53
|
'@angular-eslint/use-lifecycle-interface': 'error',
|
|
52
54
|
},
|
|
53
55
|
settings: {
|
|
54
|
-
'import/resolver': {
|
|
56
|
+
'import-x/resolver': {
|
|
55
57
|
typescript: {
|
|
56
58
|
alwaysTryTypes: true,
|
|
57
59
|
},
|
|
@@ -122,7 +124,6 @@ export default [
|
|
|
122
124
|
'*.psd',
|
|
123
125
|
'*.ai',
|
|
124
126
|
'*.ase',
|
|
125
|
-
'*.sh',
|
|
126
127
|
'*.bat',
|
|
127
128
|
'*.cmd',
|
|
128
129
|
'package-lock.json',
|
|
@@ -135,6 +136,9 @@ export default [
|
|
|
135
136
|
],
|
|
136
137
|
},
|
|
137
138
|
|
|
139
|
+
// Global plugin registration
|
|
140
|
+
globalPlugins,
|
|
141
|
+
|
|
138
142
|
// Base configuration
|
|
139
143
|
baseConfig,
|
|
140
144
|
|
|
@@ -149,5 +153,5 @@ export default [
|
|
|
149
153
|
];
|
|
150
154
|
|
|
151
155
|
// Export individual components for advanced usage
|
|
152
|
-
export { baseConfig } from '../eslint-config/base-config.js';
|
|
156
|
+
export { baseConfig, globalPlugins } from '../eslint-config/base-config.js';
|
|
153
157
|
export { baseOverrides } from '../eslint-config/overrides.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikey-pro/eslint-config-angular",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"description": "Mikey Pro ESLint Angular configuration - Ultimate Angular coding style guide",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"@angular-eslint/eslint-plugin-template": "^20.2.0",
|
|
10
10
|
"@angular-eslint/template-parser": "^20.2.0",
|
|
11
11
|
"@mikey-pro/eslint-config": "file:../eslint-config",
|
|
12
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
13
|
-
"@typescript-eslint/parser": "^8.
|
|
14
|
-
"eslint-plugin-prettier": "^5.5.
|
|
12
|
+
"@typescript-eslint/eslint-plugin": "^8.56.0",
|
|
13
|
+
"@typescript-eslint/parser": "^8.56.0",
|
|
14
|
+
"eslint-plugin-prettier": "^5.5.5"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"@mikey-pro/eslint-config": "file:../eslint-config"
|
|
@@ -24,12 +24,7 @@
|
|
|
24
24
|
"optional": false
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
|
-
"files": [
|
|
28
|
-
"index.js",
|
|
29
|
-
"flat.js",
|
|
30
|
-
"README.md",
|
|
31
|
-
"LICENSE"
|
|
32
|
-
],
|
|
27
|
+
"files": ["index.js", "flat.js", "README.md", "LICENSE"],
|
|
33
28
|
"homepage": "https://github.com/chiefmikey/mikey-pro#readme",
|
|
34
29
|
"repository": {
|
|
35
30
|
"type": "git",
|
|
@@ -57,11 +52,9 @@
|
|
|
57
52
|
"flat-config"
|
|
58
53
|
],
|
|
59
54
|
"author": "Mikl Wolfe <wolfe@mikl.io> (https://mikl.io)",
|
|
60
|
-
"browserslist": [
|
|
61
|
-
"defaults"
|
|
62
|
-
],
|
|
55
|
+
"browserslist": ["defaults"],
|
|
63
56
|
"engines": {
|
|
64
|
-
"node": ">=20.
|
|
57
|
+
"node": ">=20.19.0",
|
|
65
58
|
"npm": ">=9.0.0",
|
|
66
59
|
"pnpm": ">=8.0.0",
|
|
67
60
|
"yarn": ">=4.0.0"
|