@nx/eslint 19.5.3 → 19.5.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": "19.5.
|
3
|
+
"version": "19.5.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,12 +35,12 @@
|
|
35
35
|
"eslint": "^8.0.0 || ^9.0.0"
|
36
36
|
},
|
37
37
|
"dependencies": {
|
38
|
-
"@nx/devkit": "19.5.
|
39
|
-
"@nx/js": "19.5.
|
38
|
+
"@nx/devkit": "19.5.5",
|
39
|
+
"@nx/js": "19.5.5",
|
40
40
|
"semver": "^7.5.3",
|
41
41
|
"tslib": "^2.3.0",
|
42
42
|
"typescript": "~5.4.2",
|
43
|
-
"@nx/linter": "19.5.
|
43
|
+
"@nx/linter": "19.5.5"
|
44
44
|
},
|
45
45
|
"peerDependenciesMeta": {
|
46
46
|
"@zkochan/js-yaml": {
|
@@ -137,7 +137,7 @@ Please see https://nx.dev/recipes/tips-n-tricks/eslint for full guidance on how
|
|
137
137
|
if (printInfo) {
|
138
138
|
outputPrintInfo(totals);
|
139
139
|
}
|
140
|
-
if (totals.warnings > options.maxWarnings) {
|
140
|
+
if (options.maxWarnings >= 0 && totals.warnings > options.maxWarnings) {
|
141
141
|
console.info(`ESLint found too many warnings (maximum: ${options.maxWarnings}).`);
|
142
142
|
}
|
143
143
|
return {
|
@@ -215,6 +215,7 @@ function isMigrationToMonorepoNeeded(tree, graph) {
|
|
215
215
|
for (const targetConfig of Object.values(rootProject.data.targets ?? {})) {
|
216
216
|
if (['@nx/eslint:lint', '@nrwl/linter:eslint', '@nx/linter:eslint'].includes(targetConfig.executor) ||
|
217
217
|
(targetConfig.executor === 'nx:run-commands' &&
|
218
|
+
targetConfig.options?.command &&
|
218
219
|
targetConfig.options?.command.startsWith('eslint '))) {
|
219
220
|
return true;
|
220
221
|
}
|
package/src/plugins/plugin.js
CHANGED
@@ -303,10 +303,10 @@ function buildEslintTargets(eslintConfigs, eslintVersion, projectRoot, workspace
|
|
303
303
|
}
|
304
304
|
function normalizeOptions(options) {
|
305
305
|
const normalizedOptions = {
|
306
|
-
targetName: options
|
306
|
+
targetName: options?.targetName ?? 'lint',
|
307
307
|
};
|
308
308
|
// Normalize user input for extensions (strip leading . characters)
|
309
|
-
if (Array.isArray(options
|
309
|
+
if (Array.isArray(options?.extensions)) {
|
310
310
|
normalizedOptions.extensions = options.extensions.map((f) => f.replace(/^\.+/, ''));
|
311
311
|
}
|
312
312
|
else {
|