@nx/eslint 21.2.0 → 21.2.2
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.2.
|
3
|
+
"version": "21.2.2",
|
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.2.
|
39
|
-
"@nx/js": "21.2.
|
38
|
+
"@nx/devkit": "21.2.2",
|
39
|
+
"@nx/js": "21.2.2",
|
40
40
|
"semver": "^7.5.3",
|
41
41
|
"tslib": "^2.3.0",
|
42
42
|
"typescript": "~5.8.2"
|
@@ -101,8 +101,19 @@ 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
|
-
|
104
|
+
// log unexpected errors
|
105
|
+
const lines = (err.message ? err.message : err.toString()).split('\n');
|
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
|
+
};
|
106
117
|
}
|
107
118
|
if (lintResults.length === 0 && errorOnUnmatchedPattern) {
|
108
119
|
const ignoredPatterns = (await Promise.all(normalizedLintFilePatterns.map(async (pattern) => (await eslint.isPathIgnored(pattern)) ? pattern : null)))
|
@@ -116,13 +127,13 @@ Please see https://nx.dev/recipes/tips-n-tricks/eslint for full guidance on how
|
|
116
127
|
}
|
117
128
|
throw new Error('Invalid lint configuration. Nothing to lint. Please check your lint target pattern(s).');
|
118
129
|
}
|
119
|
-
// output fixes to disk, if applicable based on the options
|
120
|
-
await ESLint.outputFixes(lintResults);
|
121
130
|
// if quiet, only show errors
|
122
131
|
if (normalizedOptions.quiet) {
|
123
132
|
console.debug('Quiet mode enabled - filtering out warnings\n');
|
124
133
|
lintResults = ESLint.getErrorResults(lintResults);
|
125
134
|
}
|
135
|
+
// output fixes to disk, if applicable based on the options
|
136
|
+
await ESLint.outputFixes(lintResults);
|
126
137
|
const formatter = await eslint.loadFormatter(normalizedOptions.format);
|
127
138
|
const formattedResults = await formatter.format(lintResults);
|
128
139
|
if (normalizedOptions.outputFile) {
|