@angular-eslint/builder 21.3.2-alpha.1 → 21.4.1-alpha.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/dist/lint.impl.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lint.impl.d.ts","sourceRoot":"","sources":["../src/lint.impl.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;;AAMvC,
|
|
1
|
+
{"version":3,"file":"lint.impl.d.ts","sourceRoot":"","sources":["../src/lint.impl.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;;AAMvC,wBAwOE"}
|
package/dist/lint.impl.js
CHANGED
|
@@ -34,6 +34,7 @@ exports.default = (0, architect_1.createBuilder)(async (options, context) => {
|
|
|
34
34
|
options.cacheLocation = options.cacheLocation
|
|
35
35
|
? (0, path_1.join)(options.cacheLocation, projectName)
|
|
36
36
|
: null;
|
|
37
|
+
options.applySuppressions = options.applySuppressions ?? false;
|
|
37
38
|
/**
|
|
38
39
|
* Until ESLint v9 is released and the new so called flat config is the default
|
|
39
40
|
* we only want to support it if the user has explicitly opted into it by converting
|
package/dist/schema.json
CHANGED
|
@@ -127,6 +127,10 @@
|
|
|
127
127
|
{ "type": "number" }
|
|
128
128
|
],
|
|
129
129
|
"description": "The equivalent of the `--concurrency` flag on the ESLint CLI."
|
|
130
|
+
},
|
|
131
|
+
"applySuppressions": {
|
|
132
|
+
"type": "boolean",
|
|
133
|
+
"description": "The equivalent of the `--apply-suppressions` flag on the ESLint CLI."
|
|
130
134
|
}
|
|
131
135
|
},
|
|
132
136
|
"additionalProperties": false,
|
|
@@ -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;AAiDF,wBAAsB,2BAA2B,CAC/C,gBAAgB,EAAE,MAAM,GAAG,SAAS,EACpC,OAAO,EAAE,MAAM,EACf,aAAa,UAAQ;;;
|
|
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;;;GA8GtB"}
|
|
@@ -43,6 +43,9 @@ async function resolveAndInstantiateESLint(eslintConfigPath, options, useFlatCon
|
|
|
43
43
|
if (options.stats && !useFlatConfig) {
|
|
44
44
|
throw new Error('The --stats option requires ESLint Flat Config');
|
|
45
45
|
}
|
|
46
|
+
if (options.applySuppressions && !useFlatConfig) {
|
|
47
|
+
throw new Error('The --apply-suppressions option requires ESLint Flat Config');
|
|
48
|
+
}
|
|
46
49
|
if (useFlatConfig &&
|
|
47
50
|
eslintConfigPath &&
|
|
48
51
|
!exports.supportedFlatConfigNames.some((name) => eslintConfigPath.endsWith(name))) {
|
|
@@ -73,6 +76,9 @@ async function resolveAndInstantiateESLint(eslintConfigPath, options, useFlatCon
|
|
|
73
76
|
}
|
|
74
77
|
if (useFlatConfig) {
|
|
75
78
|
eslintOptions.stats = !!options.stats;
|
|
79
|
+
if (options.applySuppressions) {
|
|
80
|
+
eslintOptions.applySuppressions = true;
|
|
81
|
+
}
|
|
76
82
|
if (typeof options.useEslintrc !== 'undefined') {
|
|
77
83
|
throw new Error('For Flat Config, the `useEslintrc` option is not applicable. See https://eslint.org/docs/latest/use/configure/configuration-files-new');
|
|
78
84
|
}
|