@angular-eslint/builder 21.2.1-alpha.3 → 21.2.1-alpha.4
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint-utils.d.ts","sourceRoot":"","sources":["../../src/utils/eslint-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,eAAO,MAAM,wBAAwB,UAOpC,CAAC;
|
|
1
|
+
{"version":3,"file":"eslint-utils.d.ts","sourceRoot":"","sources":["../../src/utils/eslint-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,eAAO,MAAM,wBAAwB,UAOpC,CAAC;AAiDF,wBAAsB,2BAA2B,CAC/C,gBAAgB,EAAE,MAAM,GAAG,SAAS,EACpC,OAAO,EAAE,MAAM,EACf,aAAa,UAAQ;;;GAqGtB"}
|
|
@@ -21,7 +21,7 @@ async function resolveESLintClass(useFlatConfig = false) {
|
|
|
21
21
|
if (!useFlatConfig) {
|
|
22
22
|
return eslint.ESLint;
|
|
23
23
|
}
|
|
24
|
-
const { FlatESLint } = await import('eslint/use-at-your-own-risk');
|
|
24
|
+
const { FlatESLint } = (await import('eslint/use-at-your-own-risk'));
|
|
25
25
|
return FlatESLint;
|
|
26
26
|
}
|
|
27
27
|
catch {
|
|
@@ -102,17 +102,17 @@ async function resolveAndInstantiateESLint(eslintConfigPath, options, useFlatCon
|
|
|
102
102
|
}
|
|
103
103
|
else {
|
|
104
104
|
eslintOptions.overrideConfigFile = eslintConfigPath;
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
const legacyOptions = eslintOptions;
|
|
106
|
+
legacyOptions.rulePaths = options.rulesdir || [];
|
|
107
|
+
legacyOptions.resolvePluginsRelativeTo =
|
|
107
108
|
options.resolvePluginsRelativeTo || undefined;
|
|
108
|
-
|
|
109
|
-
options.ignorePath || undefined;
|
|
109
|
+
legacyOptions.ignorePath = options.ignorePath || undefined;
|
|
110
110
|
/**
|
|
111
111
|
* If "noEslintrc" is set to `true` (and therefore here "useEslintrc" will be `false`), then ESLint will not
|
|
112
112
|
* merge the provided config with others it finds automatically.
|
|
113
113
|
*/
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
legacyOptions.useEslintrc = !options.noEslintrc;
|
|
115
|
+
legacyOptions.reportUnusedDisableDirectives =
|
|
116
116
|
options.reportUnusedDisableDirectives || undefined;
|
|
117
117
|
}
|
|
118
118
|
const eslint = new ESLint(eslintOptions);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-eslint/builder",
|
|
3
|
-
"version": "21.2.1-alpha.
|
|
3
|
+
"version": "21.2.1-alpha.4",
|
|
4
4
|
"description": "Angular CLI builder for ESLint",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@angular/cli": ">= 21.0.0 < 22.0.0",
|
|
27
|
-
"eslint": "^8.57.0 || ^9.0.0",
|
|
27
|
+
"eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
|
|
28
28
|
"typescript": "*"
|
|
29
29
|
},
|
|
30
30
|
"builders": "./builders.json",
|