@nrwl/linter 14.6.0-beta.5 → 14.6.0-beta.8
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/CHANGELOG.md +1 -9
- package/package.json +5 -5
- package/src/executors/eslint/schema.json +15 -6
- package/src/executors/lint/schema.json +19 -7
- package/src/generators/init/init.d.ts +1 -0
- package/src/generators/init/init.js +63 -51
- package/src/generators/init/init.js.map +1 -1
- package/src/generators/lint-project/lint-project.d.ts +1 -0
- package/src/generators/lint-project/lint-project.js +1 -0
- package/src/generators/lint-project/lint-project.js.map +1 -1
package/CHANGELOG.md
CHANGED
@@ -3,14 +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
|
-
# [14.6.0-beta.
|
7
|
-
|
8
|
-
**Note:** Version bump only for package @nrwl/linter
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
## [14.5.7](https://github.com/nrwl/nx/compare/14.5.6...14.5.7) (2022-08-17)
|
6
|
+
# [14.6.0-beta.8](https://github.com/nrwl/nx/compare/14.5.7...14.6.0-beta.8) (2022-08-26)
|
15
7
|
|
16
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": "14.6.0-beta.
|
3
|
+
"version": "14.6.0-beta.8",
|
4
4
|
"description": "The Linter plugin contains executors, generator, plugin and utilities used for linting JavaScript/TypeScript projects within an Nx workspace.",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -33,10 +33,10 @@
|
|
33
33
|
"eslint": "^8.0.0"
|
34
34
|
},
|
35
35
|
"dependencies": {
|
36
|
-
"@nrwl/devkit": "14.6.0-beta.
|
37
|
-
"@nrwl/jest": "14.6.0-beta.
|
36
|
+
"@nrwl/devkit": "14.6.0-beta.8",
|
37
|
+
"@nrwl/jest": "14.6.0-beta.8",
|
38
38
|
"@phenomnomnominal/tsquery": "4.1.1",
|
39
|
-
"nx": "14.6.0-beta.
|
39
|
+
"nx": "14.6.0-beta.8",
|
40
40
|
"tmp": "~0.2.1",
|
41
41
|
"tslib": "^2.3.0"
|
42
42
|
},
|
@@ -45,5 +45,5 @@
|
|
45
45
|
"optional": true
|
46
46
|
}
|
47
47
|
},
|
48
|
-
"gitHead": "
|
48
|
+
"gitHead": "8b02670a3962710a929ad048d40ab7470a7a94a4"
|
49
49
|
}
|
@@ -7,7 +7,9 @@
|
|
7
7
|
"properties": {
|
8
8
|
"eslintConfig": {
|
9
9
|
"type": "string",
|
10
|
-
"description": "The name of the ESLint configuration file."
|
10
|
+
"description": "The name of the ESLint configuration file.",
|
11
|
+
"x-completion-type": "file",
|
12
|
+
"x-completion-glob": ".eslintrc?(.json)"
|
11
13
|
},
|
12
14
|
"lintFilePatterns": {
|
13
15
|
"type": "array",
|
@@ -66,11 +68,14 @@
|
|
66
68
|
},
|
67
69
|
"cacheLocation": {
|
68
70
|
"type": "string",
|
69
|
-
"description": "Path to the cache file or directory."
|
71
|
+
"description": "Path to the cache file or directory.",
|
72
|
+
"x-completion-type": "directory",
|
73
|
+
"x-completion-glob": "tsconfig.*.json"
|
70
74
|
},
|
71
75
|
"outputFile": {
|
72
76
|
"type": "string",
|
73
|
-
"description": "File to write report to."
|
77
|
+
"description": "File to write report to.",
|
78
|
+
"x-completion-type": "file"
|
74
79
|
},
|
75
80
|
"maxWarnings": {
|
76
81
|
"type": "number",
|
@@ -84,7 +89,9 @@
|
|
84
89
|
},
|
85
90
|
"ignorePath": {
|
86
91
|
"type": "string",
|
87
|
-
"description": "The path of the `.eslintignore` file."
|
92
|
+
"description": "The path of the `.eslintignore` file.",
|
93
|
+
"x-completion-type": "file",
|
94
|
+
"x-completion-glob": ".eslintignore"
|
88
95
|
},
|
89
96
|
"noEslintrc": {
|
90
97
|
"type": "boolean",
|
@@ -106,12 +113,14 @@
|
|
106
113
|
"description": "The equivalent of the `--rulesdir` flag on the ESLint CLI.",
|
107
114
|
"default": [],
|
108
115
|
"items": {
|
109
|
-
"type": "string"
|
116
|
+
"type": "string",
|
117
|
+
"x-completion-type": "directory"
|
110
118
|
}
|
111
119
|
},
|
112
120
|
"resolvePluginsRelativeTo": {
|
113
121
|
"type": "string",
|
114
|
-
"description": "The equivalent of the `--resolve-plugins-relative-to` flag on the ESLint CLI."
|
122
|
+
"description": "The equivalent of the `--resolve-plugins-relative-to` flag on the ESLint CLI.",
|
123
|
+
"x-completion-type": "directory"
|
115
124
|
},
|
116
125
|
"reportUnusedDisableDirectives": {
|
117
126
|
"type": "string",
|
@@ -13,16 +13,24 @@
|
|
13
13
|
},
|
14
14
|
"config": {
|
15
15
|
"type": "string",
|
16
|
-
"description": "The name of the configuration file."
|
16
|
+
"description": "The name of the configuration file.",
|
17
|
+
"x-completion-type": "file",
|
18
|
+
"x-completion-glob": "(tslint.json|.eslintrc.json)"
|
17
19
|
},
|
18
20
|
"tsConfig": {
|
19
21
|
"description": "The name of the TypeScript configuration file.",
|
20
22
|
"oneOf": [
|
21
|
-
{
|
23
|
+
{
|
24
|
+
"type": "string",
|
25
|
+
"x-completion-type": "file",
|
26
|
+
"x-completion-glob": "tsconfig.*.json"
|
27
|
+
},
|
22
28
|
{
|
23
29
|
"type": "array",
|
24
30
|
"items": {
|
25
|
-
"type": "string"
|
31
|
+
"type": "string",
|
32
|
+
"x-completion-type": "file",
|
33
|
+
"x-completion-glob": "tsconfig.*.json"
|
26
34
|
}
|
27
35
|
}
|
28
36
|
]
|
@@ -57,7 +65,8 @@
|
|
57
65
|
"description": "Files to exclude from linting.",
|
58
66
|
"default": [],
|
59
67
|
"items": {
|
60
|
-
"type": "string"
|
68
|
+
"type": "string",
|
69
|
+
"x-completion-type": "file"
|
61
70
|
}
|
62
71
|
},
|
63
72
|
"files": {
|
@@ -65,7 +74,8 @@
|
|
65
74
|
"description": "Files to include in linting.",
|
66
75
|
"default": [],
|
67
76
|
"items": {
|
68
|
-
"type": "string"
|
77
|
+
"type": "string",
|
78
|
+
"x-completion-type": "file"
|
69
79
|
}
|
70
80
|
},
|
71
81
|
"force": {
|
@@ -90,11 +100,13 @@
|
|
90
100
|
},
|
91
101
|
"cacheLocation": {
|
92
102
|
"type": "string",
|
93
|
-
"description": "Path to the cache file or directory."
|
103
|
+
"description": "Path to the cache file or directory.",
|
104
|
+
"x-completion-type": "directory"
|
94
105
|
},
|
95
106
|
"outputFile": {
|
96
107
|
"type": "string",
|
97
|
-
"description": "File to write report to."
|
108
|
+
"description": "File to write report to.",
|
109
|
+
"x-completion-type": "file"
|
98
110
|
},
|
99
111
|
"maxWarnings": {
|
100
112
|
"type": "number",
|
@@ -2,6 +2,7 @@ import type { GeneratorCallback, Tree } from '@nrwl/devkit';
|
|
2
2
|
import { Linter } from '../utils/linter';
|
3
3
|
export interface LinterInitOptions {
|
4
4
|
linter?: Linter;
|
5
|
+
unitTestRunner?: string;
|
5
6
|
skipPackageJson?: boolean;
|
6
7
|
}
|
7
8
|
export declare function lintInitGenerator(tree: Tree, options: LinterInitOptions): GeneratorCallback;
|
@@ -67,64 +67,76 @@ const globalTsLintConfiguration = {
|
|
67
67
|
],
|
68
68
|
},
|
69
69
|
};
|
70
|
-
const
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
* We leverage ESLint's "overrides" capability so that we can set up a root config which will support
|
76
|
-
* all permutations of Nx workspaces across all frameworks, libraries and tools.
|
77
|
-
*
|
78
|
-
* The key point is that we need entirely different ESLint config to apply to different types of files,
|
79
|
-
* but we still want to share common config where possible.
|
80
|
-
*/
|
81
|
-
overrides: [
|
70
|
+
const getGlobalEsLintConfiguration = (unitTestRunner) => {
|
71
|
+
const config = {
|
72
|
+
root: true,
|
73
|
+
ignorePatterns: ['**/*'],
|
74
|
+
plugins: ['@nrwl/nx'],
|
82
75
|
/**
|
83
|
-
*
|
84
|
-
*
|
76
|
+
* We leverage ESLint's "overrides" capability so that we can set up a root config which will support
|
77
|
+
* all permutations of Nx workspaces across all frameworks, libraries and tools.
|
78
|
+
*
|
79
|
+
* The key point is that we need entirely different ESLint config to apply to different types of files,
|
80
|
+
* but we still want to share common config where possible.
|
85
81
|
*/
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
82
|
+
overrides: [
|
83
|
+
/**
|
84
|
+
* This configuration is intended to apply to all "source code" (but not
|
85
|
+
* markup like HTML, or other custom file types like GraphQL)
|
86
|
+
*/
|
87
|
+
{
|
88
|
+
files: ['*.ts', '*.tsx', '*.js', '*.jsx'],
|
89
|
+
rules: {
|
90
|
+
'@nrwl/nx/enforce-module-boundaries': [
|
91
|
+
'error',
|
92
|
+
{
|
93
|
+
enforceBuildableLibDependency: true,
|
94
|
+
allow: [],
|
95
|
+
depConstraints: [
|
96
|
+
{ sourceTag: '*', onlyDependOnLibsWithTags: ['*'] },
|
97
|
+
],
|
98
|
+
},
|
99
|
+
],
|
100
|
+
},
|
99
101
|
},
|
100
|
-
},
|
101
|
-
/**
|
102
|
-
* This configuration is intended to apply to all TypeScript source files.
|
103
|
-
* See the eslint-plugin-nx package for what is in the referenced shareable config.
|
104
|
-
*/
|
105
|
-
{
|
106
|
-
files: ['*.ts', '*.tsx'],
|
107
|
-
extends: ['plugin:@nrwl/nx/typescript'],
|
108
102
|
/**
|
109
|
-
*
|
110
|
-
*
|
103
|
+
* This configuration is intended to apply to all TypeScript source files.
|
104
|
+
* See the eslint-plugin-nx package for what is in the referenced shareable config.
|
111
105
|
*/
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
106
|
+
{
|
107
|
+
files: ['*.ts', '*.tsx'],
|
108
|
+
extends: ['plugin:@nrwl/nx/typescript'],
|
109
|
+
/**
|
110
|
+
* Having an empty rules object present makes it more obvious to the user where they would
|
111
|
+
* extend things from if they needed to
|
112
|
+
*/
|
113
|
+
rules: {},
|
114
|
+
},
|
121
115
|
/**
|
122
|
-
*
|
123
|
-
*
|
116
|
+
* This configuration is intended to apply to all JavaScript source files.
|
117
|
+
* See the eslint-plugin-nx package for what is in the referenced shareable config.
|
124
118
|
*/
|
119
|
+
{
|
120
|
+
files: ['*.js', '*.jsx'],
|
121
|
+
extends: ['plugin:@nrwl/nx/javascript'],
|
122
|
+
/**
|
123
|
+
* Having an empty rules object present makes it more obvious to the user where they would
|
124
|
+
* extend things from if they needed to
|
125
|
+
*/
|
126
|
+
rules: {},
|
127
|
+
},
|
128
|
+
],
|
129
|
+
};
|
130
|
+
if (unitTestRunner === 'jest') {
|
131
|
+
config.overrides.push({
|
132
|
+
files: ['*.spec.ts', '*.spec.tsx', '*.spec.js', '*.spec.jsx'],
|
133
|
+
env: {
|
134
|
+
jest: true,
|
135
|
+
},
|
125
136
|
rules: {},
|
126
|
-
}
|
127
|
-
|
137
|
+
});
|
138
|
+
}
|
139
|
+
return config;
|
128
140
|
};
|
129
141
|
function initTsLint(tree, options) {
|
130
142
|
if (tree.exists('/tslint.json')) {
|
@@ -145,7 +157,7 @@ function initEsLint(tree, options) {
|
|
145
157
|
if (!options.skipPackageJson) {
|
146
158
|
(0, devkit_1.removeDependenciesFromPackageJson)(tree, ['@nrwl/linter'], []);
|
147
159
|
}
|
148
|
-
(0, devkit_1.writeJson)(tree, '.eslintrc.json',
|
160
|
+
(0, devkit_1.writeJson)(tree, '.eslintrc.json', getGlobalEsLintConfiguration(options.unitTestRunner));
|
149
161
|
if (tree.exists('.vscode/extensions.json')) {
|
150
162
|
(0, devkit_1.updateJson)(tree, '.vscode/extensions.json', (json) => {
|
151
163
|
json.recommendations || (json.recommendations = []);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../../../../../packages/linter/src/generators/init/init.ts"],"names":[],"mappings":";;;AACA,yCAKsB;AACtB,mDAO8B;AAE9B,4CAAyC;AACzC,sDAAsD;
|
1
|
+
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../../../../../packages/linter/src/generators/init/init.ts"],"names":[],"mappings":";;;AACA,yCAKsB;AACtB,mDAO8B;AAE9B,4CAAyC;AACzC,sDAAsD;AAStD,MAAM,yBAAyB,GAAG;IAChC,cAAc,EAAE,CAAC,yCAAyC,CAAC;IAC3D,aAAa,EAAE;QACb,OAAO,EAAE,CAAC,MAAM,CAAC;KAClB;IACD,KAAK,EAAE;QACL,wBAAwB,EAAE,IAAI;QAC9B,gBAAgB,EAAE,IAAI;QACtB,YAAY,EAAE,IAAI;QAClB,WAAW,EAAE;YACX,QAAQ,EAAE,MAAM;SACjB;QACD,KAAK,EAAE,IAAI;QACX,kBAAkB,EAAE,CAAC,IAAI,EAAE,SAAS,CAAC;QACrC,6BAA6B,EAAE,IAAI;QACnC,eAAe,EAAE,KAAK;QACtB,iBAAiB,EAAE;YACjB,IAAI;YACJ;gBACE,KAAK,EAAE;oBACL,cAAc;oBACd,gBAAgB;oBAChB,eAAe;oBACf,iBAAiB;iBAClB;aACF;SACF;QACD,QAAQ,EAAE,IAAI;QACd,YAAY,EAAE,IAAI;QAClB,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,CAAC;QACjE,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,IAAI;QACnB,oBAAoB,EAAE,IAAI;QAC1B,UAAU,EAAE,KAAK;QACjB,oBAAoB,EAAE,IAAI;QAC1B,SAAS,EAAE,IAAI;QACf,qBAAqB,EAAE,CAAC,IAAI,EAAE,eAAe,CAAC;QAC9C,gBAAgB,EAAE,IAAI;QACtB,uBAAuB,EAAE,IAAI;QAC7B,sBAAsB,EAAE,IAAI;QAC5B,mBAAmB,EAAE,KAAK;QAC1B,iBAAiB,EAAE,IAAI;Q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11
12
|
}
|
12
13
|
export declare function lintProjectGenerator(tree: Tree, options: LintProjectOptions): Promise<import("@nrwl/devkit").GeneratorCallback>;
|
13
14
|
export {};
|
@@ -64,6 +64,7 @@ function lintProjectGenerator(tree, options) {
|
|
64
64
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
65
65
|
const installTask = (0, init_1.lintInitGenerator)(tree, {
|
66
66
|
linter: options.linter,
|
67
|
+
unitTestRunner: options.unitTestRunner,
|
67
68
|
skipPackageJson: options.skipPackageJson,
|
68
69
|
});
|
69
70
|
const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, options.project);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"lint-project.js","sourceRoot":"","sources":["../../../../../../packages/linter/src/generators/lint-project/lint-project.ts"],"names":[],"mappings":";;;;AACA,yCAMsB;AAEtB,4CAAyC;AACzC,sDAAsD;AACtD,+BAA4B;AAC5B,uCAAiD;
|
1
|
+
{"version":3,"file":"lint-project.js","sourceRoot":"","sources":["../../../../../../packages/linter/src/generators/lint-project/lint-project.ts"],"names":[],"mappings":";;;;AACA,yCAMsB;AAEtB,4CAAyC;AACzC,sDAAsD;AACtD,+BAA4B;AAC5B,uCAAiD;AAajD,SAAS,yBAAyB,CAChC,IAAU,EACV,aAAmC;IAEnC,IAAA,kBAAS,EAAC,IAAI,EAAE,IAAA,WAAI,EAAC,aAAa,CAAC,IAAI,EAAE,aAAa,CAAC,EAAE;QACvD,OAAO,EAAE,GAAG,IAAA,uBAAc,EAAC,aAAa,CAAC,IAAI,CAAC,aAAa;QAC3D,8EAA8E;QAC9E,aAAa,EAAE;YACb,OAAO,EAAE,CAAC,OAAO,CAAC;SACnB;QACD,KAAK,EAAE,EAAE;KACV,CAAC,CAAC;AACL,CAAC;AAED,SAAS,yBAAyB,CAChC,IAAU,EACV,aAAmC,EACnC,uBAAgC;IAEhC,IAAA,kBAAS,EAAC,IAAI,EAAE,IAAA,WAAI,EAAC,aAAa,CAAC,IAAI,EAAE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