@nx/eslint 17.0.0-beta.8 → 17.0.0-rc.0
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": "17.0.0-
|
|
3
|
+
"version": "17.0.0-rc.0",
|
|
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": {
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"tslib": "^2.3.0",
|
|
37
|
-
"@nx/devkit": "17.0.0-
|
|
38
|
-
"@nx/js": "17.0.0-
|
|
37
|
+
"@nx/devkit": "17.0.0-rc.0",
|
|
38
|
+
"@nx/js": "17.0.0-rc.0",
|
|
39
39
|
"typescript": "~5.1.3",
|
|
40
|
-
"@nx/linter": "17.0.0-
|
|
40
|
+
"@nx/linter": "17.0.0-rc.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependenciesMeta": {
|
|
43
43
|
"eslint": {
|
|
@@ -200,7 +200,11 @@ function addExtendsToLintConfig(tree, root, plugin) {
|
|
|
200
200
|
else {
|
|
201
201
|
const fileName = (0, devkit_1.joinPathFragments)(root, '.eslintrc.json');
|
|
202
202
|
(0, devkit_1.updateJson)(tree, fileName, (json) => {
|
|
203
|
-
json.extends
|
|
203
|
+
json.extends ??= [];
|
|
204
|
+
json.extends = [
|
|
205
|
+
...plugins,
|
|
206
|
+
...(Array.isArray(json.extends) ? json.extends : [json.extends]),
|
|
207
|
+
];
|
|
204
208
|
return json;
|
|
205
209
|
});
|
|
206
210
|
}
|