@nx/eslint 21.3.0-beta.6 → 21.3.0-canary.20250614-db86a35
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.0-
|
3
|
+
"version": "21.3.0-canary.20250614-db86a35",
|
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.0-
|
39
|
-
"@nx/js": "21.3.0-
|
38
|
+
"@nx/devkit": "21.3.0-canary.20250614-db86a35",
|
39
|
+
"@nx/js": "21.3.0-canary.20250614-db86a35",
|
40
40
|
"semver": "^7.5.3",
|
41
41
|
"tslib": "^2.3.0",
|
42
42
|
"typescript": "~5.8.2"
|
@@ -101,19 +101,8 @@ Please see https://nx.dev/recipes/tips-n-tricks/eslint for full guidance on how
|
|
101
101
|
success: false,
|
102
102
|
};
|
103
103
|
}
|
104
|
-
//
|
105
|
-
|
106
|
-
const bodyLines = lines.slice(1);
|
107
|
-
if (err.stack) {
|
108
|
-
bodyLines.push(...err.stack.split('\n'));
|
109
|
-
}
|
110
|
-
devkit_1.output.error({
|
111
|
-
title: lines[0],
|
112
|
-
bodyLines,
|
113
|
-
});
|
114
|
-
return {
|
115
|
-
success: false,
|
116
|
-
};
|
104
|
+
// If some unexpected error, rethrow
|
105
|
+
throw err;
|
117
106
|
}
|
118
107
|
if (lintResults.length === 0 && errorOnUnmatchedPattern) {
|
119
108
|
const ignoredPatterns = (await Promise.all(normalizedLintFilePatterns.map(async (pattern) => (await eslint.isPathIgnored(pattern)) ? pattern : null)))
|
@@ -127,13 +116,13 @@ Please see https://nx.dev/recipes/tips-n-tricks/eslint for full guidance on how
|
|
127
116
|
}
|
128
117
|
throw new Error('Invalid lint configuration. Nothing to lint. Please check your lint target pattern(s).');
|
129
118
|
}
|
119
|
+
// output fixes to disk, if applicable based on the options
|
120
|
+
await ESLint.outputFixes(lintResults);
|
130
121
|
// if quiet, only show errors
|
131
122
|
if (normalizedOptions.quiet) {
|
132
123
|
console.debug('Quiet mode enabled - filtering out warnings\n');
|
133
124
|
lintResults = ESLint.getErrorResults(lintResults);
|
134
125
|
}
|
135
|
-
// output fixes to disk, if applicable based on the options
|
136
|
-
await ESLint.outputFixes(lintResults);
|
137
126
|
const formatter = await eslint.loadFormatter(normalizedOptions.format);
|
138
127
|
const formattedResults = await formatter.format(lintResults);
|
139
128
|
if (normalizedOptions.outputFile) {
|