@nx/eslint 21.3.3 → 21.3.5
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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/eslint",
|
3
|
-
"version": "21.3.
|
3
|
+
"version": "21.3.5",
|
4
4
|
"private": false,
|
5
5
|
"description": "The ESLint plugin for Nx contains executors, generators and utilities used for linting JavaScript/TypeScript projects within an Nx workspace.",
|
6
6
|
"repository": {
|
@@ -35,8 +35,8 @@
|
|
35
35
|
"eslint": "^8.0.0 || ^9.0.0"
|
36
36
|
},
|
37
37
|
"dependencies": {
|
38
|
-
"@nx/devkit": "21.3.
|
39
|
-
"@nx/js": "21.3.
|
38
|
+
"@nx/devkit": "21.3.5",
|
39
|
+
"@nx/js": "21.3.5",
|
40
40
|
"semver": "^7.5.3",
|
41
41
|
"tslib": "^2.3.0",
|
42
42
|
"typescript": "~5.8.2"
|
@@ -127,13 +127,13 @@ Please see https://nx.dev/recipes/tips-n-tricks/eslint for full guidance on how
|
|
127
127
|
}
|
128
128
|
throw new Error('Invalid lint configuration. Nothing to lint. Please check your lint target pattern(s).');
|
129
129
|
}
|
130
|
+
// output fixes to disk, if applicable based on the options
|
131
|
+
await ESLint.outputFixes(lintResults);
|
130
132
|
// if quiet, only show errors
|
131
133
|
if (normalizedOptions.quiet) {
|
132
134
|
console.debug('Quiet mode enabled - filtering out warnings\n');
|
133
135
|
lintResults = ESLint.getErrorResults(lintResults);
|
134
136
|
}
|
135
|
-
// output fixes to disk, if applicable based on the options
|
136
|
-
await ESLint.outputFixes(lintResults);
|
137
137
|
const formatter = await eslint.loadFormatter(normalizedOptions.format);
|
138
138
|
const formattedResults = await formatter.format(lintResults);
|
139
139
|
if (normalizedOptions.outputFile) {
|
@@ -16,7 +16,8 @@ async function resolveAndInstantiateESLint(eslintConfigPath, options, useFlatCon
|
|
16
16
|
// ruleFilter exist only in eslint 9+, remove this type when eslint 8 support dropped
|
17
17
|
const eslintOptions = {
|
18
18
|
overrideConfigFile: eslintConfigPath,
|
19
|
-
fix: !!options.fix
|
19
|
+
fix: !!options.fix &&
|
20
|
+
(options.quiet ? (message) => message.severity === 2 : true),
|
20
21
|
cache: !!options.cache,
|
21
22
|
cacheLocation: options.cacheLocation || undefined,
|
22
23
|
cacheStrategy: options.cacheStrategy || undefined,
|