@nx/eslint 20.0.0-canary.20241002-1d10a19 → 20.0.0-canary.20241003-84a5c7a
Sign up to get free protection for your applications and to get access to all the features.
- package/migrations.json +0 -56
- package/package.json +3 -3
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.d.ts +0 -2
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js +0 -9
- package/src/migrations/update-16-8-0-add-ignored-files/update-16-8-0-add-ignored-files.d.ts +0 -2
- package/src/migrations/update-16-8-0-add-ignored-files/update-16-8-0-add-ignored-files.js +0 -44
package/migrations.json
CHANGED
@@ -1,16 +1,5 @@
|
|
1
1
|
{
|
2
2
|
"generators": {
|
3
|
-
"update-16-0-0-add-nx-packages": {
|
4
|
-
"cli": "nx",
|
5
|
-
"version": "16.0.0-beta.1",
|
6
|
-
"description": "Replace @nrwl/linter with @nx/linter",
|
7
|
-
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages"
|
8
|
-
},
|
9
|
-
"update-16-8-0-add-ignored-files": {
|
10
|
-
"version": "16.8.0",
|
11
|
-
"description": "update-16-8-0-add-ignored-files",
|
12
|
-
"implementation": "./src/migrations/update-16-8-0-add-ignored-files/update-16-8-0-add-ignored-files"
|
13
|
-
},
|
14
3
|
"update-17-0-0-rename-to-eslint": {
|
15
4
|
"version": "17.0.0-beta.7",
|
16
5
|
"description": "update-17-0-0-rename-to-eslint",
|
@@ -33,51 +22,6 @@
|
|
33
22
|
}
|
34
23
|
},
|
35
24
|
"packageJsonUpdates": {
|
36
|
-
"16.0.0": {
|
37
|
-
"version": "16.0.0-beta.0",
|
38
|
-
"packages": {
|
39
|
-
"@typescript-eslint/parser": {
|
40
|
-
"version": "^5.58.0"
|
41
|
-
},
|
42
|
-
"@typescript-eslint/eslint-plugin": {
|
43
|
-
"version": "^5.58.0"
|
44
|
-
},
|
45
|
-
"@typescript-eslint/utils": {
|
46
|
-
"version": "^5.58.0"
|
47
|
-
}
|
48
|
-
}
|
49
|
-
},
|
50
|
-
"16.5.0": {
|
51
|
-
"version": "16.5.0-beta.2",
|
52
|
-
"packages": {
|
53
|
-
"@typescript-eslint/parser": {
|
54
|
-
"version": "^5.60.1"
|
55
|
-
},
|
56
|
-
"@typescript-eslint/eslint-plugin": {
|
57
|
-
"version": "^5.60.1"
|
58
|
-
},
|
59
|
-
"@typescript-eslint/utils": {
|
60
|
-
"version": "^5.60.1"
|
61
|
-
}
|
62
|
-
}
|
63
|
-
},
|
64
|
-
"16.7.0": {
|
65
|
-
"version": "16.7.0-beta.2",
|
66
|
-
"packages": {
|
67
|
-
"eslint": {
|
68
|
-
"version": "~8.46.0"
|
69
|
-
},
|
70
|
-
"@typescript-eslint/parser": {
|
71
|
-
"version": "^5.60.1"
|
72
|
-
},
|
73
|
-
"@typescript-eslint/eslint-plugin": {
|
74
|
-
"version": "^5.60.1"
|
75
|
-
},
|
76
|
-
"@typescript-eslint/utils": {
|
77
|
-
"version": "^5.60.1"
|
78
|
-
}
|
79
|
-
}
|
80
|
-
},
|
81
25
|
"17.0.0": {
|
82
26
|
"version": "17.0.0-rc.2",
|
83
27
|
"packages": {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/eslint",
|
3
|
-
"version": "20.0.0-canary.
|
3
|
+
"version": "20.0.0-canary.20241003-84a5c7a",
|
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": "20.0.0-canary.
|
39
|
-
"@nx/js": "20.0.0-canary.
|
38
|
+
"@nx/devkit": "20.0.0-canary.20241003-84a5c7a",
|
39
|
+
"@nx/js": "20.0.0-canary.20241003-84a5c7a",
|
40
40
|
"semver": "^7.5.3",
|
41
41
|
"tslib": "^2.3.0",
|
42
42
|
"typescript": "~5.4.2"
|
@@ -1,9 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.default = replacePackage;
|
4
|
-
const devkit_1 = require("@nx/devkit");
|
5
|
-
const replace_package_1 = require("@nx/devkit/src/utils/replace-package");
|
6
|
-
async function replacePackage(tree) {
|
7
|
-
await (0, replace_package_1.replaceNrwlPackageWithNxPackage)(tree, '@nrwl/linter', '@nx/linter');
|
8
|
-
await (0, devkit_1.formatFiles)(tree);
|
9
|
-
}
|
@@ -1,44 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.default = update;
|
4
|
-
const devkit_1 = require("@nx/devkit");
|
5
|
-
const executor_options_utils_1 = require("@nx/devkit/src/generators/executor-options-utils");
|
6
|
-
const eslint_file_1 = require("../../generators/utils/eslint-file");
|
7
|
-
// Add `ignoredFiles` pattern to projects using vite, esbuild, and rollup.
|
8
|
-
// This is needed because the @nx/dependency-checks lint rule will complain
|
9
|
-
// about dependencies used in build config files, even though they are not
|
10
|
-
// production dependencies.
|
11
|
-
function update(tree) {
|
12
|
-
const projects = (0, devkit_1.getProjects)(tree);
|
13
|
-
const addIgnorePattern = (ignorePattern) => (_options, projectName) => {
|
14
|
-
const project = projects.get(projectName);
|
15
|
-
if (!(0, eslint_file_1.findEslintFile)(tree, project.root) ||
|
16
|
-
!(0, eslint_file_1.isEslintConfigSupported)(tree)) {
|
17
|
-
return;
|
18
|
-
}
|
19
|
-
if ((0, eslint_file_1.lintConfigHasOverride)(tree, project.root, (o) => Array.isArray(o.files)
|
20
|
-
? o.files.some((f) => f.match(/\.json$/))
|
21
|
-
: !!o.files?.match(/\.json$/), true)) {
|
22
|
-
(0, eslint_file_1.updateOverrideInLintConfig)(tree, project.root, (o) => !!o.rules?.['@nx/dependency-checks'], (o) => {
|
23
|
-
const value = o.rules['@nx/dependency-checks'];
|
24
|
-
let ruleSeverity;
|
25
|
-
let ruleOptions;
|
26
|
-
if (Array.isArray(value)) {
|
27
|
-
ruleSeverity = value[0];
|
28
|
-
ruleOptions = value[1];
|
29
|
-
}
|
30
|
-
else {
|
31
|
-
ruleSeverity = value;
|
32
|
-
ruleOptions = {};
|
33
|
-
}
|
34
|
-
ruleOptions.ignoredFiles = [ignorePattern];
|
35
|
-
o.rules['@nx/dependency-checks'] = [ruleSeverity, ruleOptions];
|
36
|
-
return o;
|
37
|
-
});
|
38
|
-
}
|
39
|
-
};
|
40
|
-
(0, executor_options_utils_1.forEachExecutorOptions)(tree, '@nx/vite:build', addIgnorePattern('{projectRoot}/vite.config.{js,ts,mjs,mts}'));
|
41
|
-
(0, executor_options_utils_1.forEachExecutorOptions)(tree, '@nx/vite:test', addIgnorePattern('{projectRoot}/vite.config.{js,ts,mjs,mts}'));
|
42
|
-
(0, executor_options_utils_1.forEachExecutorOptions)(tree, '@nx/esbuild:esbuild', addIgnorePattern('{projectRoot}/esbuild.config.{js,ts,mjs,mts}'));
|
43
|
-
(0, executor_options_utils_1.forEachExecutorOptions)(tree, '@nx/rollup:rollup', addIgnorePattern('{projectRoot}/rollup.config.{js,ts,mjs,mts}'));
|
44
|
-
}
|