@nrwl/linter 15.3.0-beta.12 → 15.3.0-beta.13
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +1 -1
- package/package.json +4 -4
- package/src/generators/workspace-rules-project/workspace-rules-project.js +20 -0
- package/src/generators/workspace-rules-project/workspace-rules-project.js.map +1 -1
- package/src/migrations/update-13-3-0/eslint-8-updates.js +2 -0
- package/src/migrations/update-13-3-0/eslint-8-updates.js.map +1 -1
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,6 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
-
# [15.3.0-beta.
|
6
|
+
# [15.3.0-beta.13](https://github.com/nrwl/nx/compare/15.2.0...15.3.0-beta.13) (2022-12-05)
|
7
7
|
|
8
8
|
**Note:** Version bump only for package @nrwl/linter
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nrwl/linter",
|
3
|
-
"version": "15.3.0-beta.
|
3
|
+
"version": "15.3.0-beta.13",
|
4
4
|
"private": false,
|
5
5
|
"description": "The Linter plugin for Nx contains executors, generators and utilities used for linting JavaScript/TypeScript projects within an Nx workspace.",
|
6
6
|
"repository": {
|
@@ -33,9 +33,9 @@
|
|
33
33
|
"eslint": "^8.0.0"
|
34
34
|
},
|
35
35
|
"dependencies": {
|
36
|
-
"@nrwl/devkit": "15.3.0-beta.
|
36
|
+
"@nrwl/devkit": "15.3.0-beta.13",
|
37
37
|
"@phenomnomnominal/tsquery": "4.1.1",
|
38
|
-
"nx": "15.3.0-beta.
|
38
|
+
"nx": "15.3.0-beta.13",
|
39
39
|
"tmp": "~0.2.1",
|
40
40
|
"tslib": "^2.3.0"
|
41
41
|
},
|
@@ -48,5 +48,5 @@
|
|
48
48
|
"access": "public"
|
49
49
|
},
|
50
50
|
"types": "./index.d.ts",
|
51
|
-
"gitHead": "
|
51
|
+
"gitHead": "61d7d74378305ba96f9e94707aefeecb438328ca"
|
52
52
|
}
|
@@ -49,6 +49,26 @@ function lintWorkspaceRulesProjectGenerator(tree) {
|
|
49
49
|
skipSerializers: true,
|
50
50
|
setupFile: 'none',
|
51
51
|
compiler: 'tsc',
|
52
|
+
skipFormat: true,
|
53
|
+
});
|
54
|
+
(0, devkit_1.updateJson)(tree, (0, path_1.join)(workspace_lint_rules_1.workspaceLintPluginDir, 'tsconfig.spec.json'), (json) => {
|
55
|
+
if (json.include) {
|
56
|
+
json.include = json.include.map((v) => {
|
57
|
+
if (v.startsWith('src/**')) {
|
58
|
+
return v.replace('src/', '');
|
59
|
+
}
|
60
|
+
return v;
|
61
|
+
});
|
62
|
+
}
|
63
|
+
if (json.exclude) {
|
64
|
+
json.exclude = json.exclude.map((v) => {
|
65
|
+
if (v.startsWith('src/**')) {
|
66
|
+
return v.replace('src/', '');
|
67
|
+
}
|
68
|
+
return v;
|
69
|
+
});
|
70
|
+
}
|
71
|
+
return json;
|
52
72
|
});
|
53
73
|
// Add swc dependencies
|
54
74
|
(0, devkit_1.addDependenciesToPackageJson)(tree, {}, { '@swc-node/register': versions_1.swcNodeVersion, '@swc/core': versions_1.swcCoreVersion });
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"workspace-rules-project.js","sourceRoot":"","sources":["../../../../../../packages/linter/src/generators/workspace-rules-project/workspace-rules-project.ts"],"names":[],"mappings":";;;;AAAA,
|
1
|
+
{"version":3,"file":"workspace-rules-project.js","sourceRoot":"","sources":["../../../../../../packages/linter/src/generators/workspace-rules-project/workspace-rules-project.ts"],"names":[],"mappings":";;;;AAAA,yCAcsB;AACtB,yEAAyF;AACzF,+BAA4B;AAC5B,2EAA0E;AAC1E,oDAAuE;AACvE,mDAAiD;AAEpC,QAAA,4BAA4B,GAAG,cAAc,CAAC;AAE9C,QAAA,oBAAoB,GAAG,oBAAoB,CAAC;AAEzD,SAAsB,kCAAkC,CAAC,IAAU;;;QACjE,MAAM,IAAA,sBAAa,EAAC,IAA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C,CACnC,CAAC"}
|
@@ -3,9 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
4
4
|
const devkit_1 = require("@nrwl/devkit");
|
5
5
|
const tsquery_1 = require("@phenomnomnominal/tsquery");
|
6
|
+
const versions_1 = require("../../utils/versions");
|
6
7
|
function eslint8Updates(tree) {
|
7
8
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
8
9
|
try {
|
10
|
+
yield (0, devkit_1.ensurePackage)(tree, '@nrwl/jest/', versions_1.nxVersion);
|
9
11
|
const { addPropertyToJestConfig } = yield Promise.resolve().then(() => require('@nrwl/jest'));
|
10
12
|
const existingJestConfigPath = (0, devkit_1.normalizePath)('tools/eslint-rules/jest.config.js');
|
11
13
|
// Add extra config to the jest.config.js file to allow ESLint 8 exports mapping to work with jest
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"eslint-8-updates.js","sourceRoot":"","sources":["../../../../../../packages/linter/src/migrations/update-13-3-0/eslint-8-updates.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"eslint-8-updates.js","sourceRoot":"","sources":["../../../../../../packages/linter/src/migrations/update-13-3-0/eslint-8-updates.ts"],"names":[],"mappings":";;;AAAA,yCAMsB;AACtB,uDAAoD;AACpD,mDAAiD;AAEjD,SAA8B,cAAc,CAAC,IAAU;;QACrD,IAAI;YACF,MAAM,IAAA,sBAAa,EAAC,IAAI,EAAE,aAAa,EAAE,oBAAS,CAAC,CAAC;YACpD,MAAM,EAAE,uBAAuB,EAAE,GAAG,2CAAa,YAAY,EAAC,CAAC;YAC/D,MAAM,sBAAsB,GAAG,IAAA,sBAAa,EAC1C,mCAAmC,CACpC,CAAC;YAEF,kGAAkG;YAClG,uBAAuB,CAAC,IAAI,EAAE,sBAAsB,EAAE,kBAAkB,EAAE;gBACxE,kBAAkB,EAAE,8CAA8C;aACnE,CAAC,CAAC;YAEH,IAAA,6BAAoB,EAAC,IAAI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