@mikey-pro/eslint-config-angular 9.0.8 → 10.0.1
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 +12 -7
- package/package.json +8 -8
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
|
|
6
|
-
import {
|
|
5
|
+
import tsParser from '@typescript-eslint/parser';
|
|
6
|
+
import { baseConfig, globalPlugins } from '@mikey-pro/eslint-config/base-config.js';
|
|
7
|
+
import { baseOverrides } from '@mikey-pro/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
|
},
|
|
@@ -134,6 +136,9 @@ export default [
|
|
|
134
136
|
],
|
|
135
137
|
},
|
|
136
138
|
|
|
139
|
+
// Global plugin registration
|
|
140
|
+
globalPlugins,
|
|
141
|
+
|
|
137
142
|
// Base configuration
|
|
138
143
|
baseConfig,
|
|
139
144
|
|
|
@@ -148,5 +153,5 @@ export default [
|
|
|
148
153
|
];
|
|
149
154
|
|
|
150
155
|
// Export individual components for advanced usage
|
|
151
|
-
export { baseConfig } from '
|
|
152
|
-
export { baseOverrides } from '
|
|
156
|
+
export { baseConfig, globalPlugins } from '@mikey-pro/eslint-config/base-config.js';
|
|
157
|
+
export { baseOverrides } from '@mikey-pro/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.1",
|
|
4
4
|
"description": "Mikey Pro ESLint Angular configuration - Ultimate Angular coding style guide",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
"@angular-eslint/eslint-plugin": "^20.2.0",
|
|
9
9
|
"@angular-eslint/eslint-plugin-template": "^20.2.0",
|
|
10
10
|
"@angular-eslint/template-parser": "^20.2.0",
|
|
11
|
-
"@mikey-pro/eslint-config": "
|
|
12
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
13
|
-
"@typescript-eslint/parser": "^8.
|
|
14
|
-
"eslint-plugin-prettier": "^5.5.
|
|
11
|
+
"@mikey-pro/eslint-config": "^10.0.0",
|
|
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
|
-
"@mikey-pro/eslint-config": "
|
|
17
|
+
"@mikey-pro/eslint-config": "^10.0.0"
|
|
18
18
|
},
|
|
19
19
|
"peerDependenciesMeta": {
|
|
20
20
|
"@angular/core": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"style-guide",
|
|
54
54
|
"style",
|
|
55
55
|
"guide",
|
|
56
|
-
"eslint-
|
|
56
|
+
"eslint-10",
|
|
57
57
|
"flat-config"
|
|
58
58
|
],
|
|
59
59
|
"author": "Mikl Wolfe <wolfe@mikl.io> (https://mikl.io)",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"defaults"
|
|
62
62
|
],
|
|
63
63
|
"engines": {
|
|
64
|
-
"node": ">=20.
|
|
64
|
+
"node": ">=20.19.0",
|
|
65
65
|
"npm": ">=9.0.0",
|
|
66
66
|
"pnpm": ">=8.0.0",
|
|
67
67
|
"yarn": ">=4.0.0"
|