@nrwl/linter 14.5.4 → 14.5.6
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 +5 -5
- package/src/executors/eslint/hasher.js +1 -1
- package/src/executors/eslint/hasher.js.map +1 -1
- package/src/executors/eslint/schema.d.ts +2 -0
- package/src/executors/eslint/schema.json +6 -0
- package/src/executors/eslint/utility/eslint-utils.js +1 -0
- package/src/executors/eslint/utility/eslint-utils.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
|
-
## [14.5.
|
6
|
+
## [14.5.6](https://github.com/nrwl/nx/compare/14.5.5...14.5.6) (2022-08-14)
|
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": "14.5.
|
3
|
+
"version": "14.5.6",
|
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.5.
|
37
|
-
"@nrwl/jest": "14.5.
|
36
|
+
"@nrwl/devkit": "14.5.6",
|
37
|
+
"@nrwl/jest": "14.5.6",
|
38
38
|
"@phenomnomnominal/tsquery": "4.1.1",
|
39
|
-
"nx": "14.5.
|
39
|
+
"nx": "14.5.6",
|
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": "608141ec7c3f8718419fc869f506196180e2bf2c"
|
49
49
|
}
|
@@ -10,7 +10,7 @@ function run(task, context) {
|
|
10
10
|
const deps = allDeps(task.id, context.taskGraph, context.projectGraph);
|
11
11
|
const tags = context.hasher.hashArray(deps.map((d) => (context.workspaceConfig.projects[d].tags || []).join('|')));
|
12
12
|
const command = res.details['command'];
|
13
|
-
const selfSource = res.details.nodes[`${task.target.project}:$filesets`];
|
13
|
+
const selfSource = res.details.nodes[`${task.target.project}:$filesets:default`];
|
14
14
|
const nodes = {};
|
15
15
|
const hashes = [];
|
16
16
|
for (const d of Object.keys(res.details.nodes)) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"hasher.js","sourceRoot":"","sources":["../../../../../../packages/linter/src/executors/eslint/hasher.ts"],"names":[],"mappings":";;;AASA,SAA8B,GAAG,CAC/B,IAAU,EACV,OAKC;;QAED,MAAM,GAAG,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAChD,IAAI,IAAI,CAAC,SAAS,CAAC,mBAAmB,CAAC,KAAK,IAAI,EAAE;YAChD,OAAO,GAAG,CAAC;SACZ;QAED,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;QACvE,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,SAAS,CACnC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAC5E,CAAC;QAEF,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QACvC,MAAM,UAAU,
|
1
|
+
{"version":3,"file":"hasher.js","sourceRoot":"","sources":["../../../../../../packages/linter/src/executors/eslint/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;QACD,OAAO;YACL,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,MAAM,EAAE,IAAI,CAAC,CAAC;YACvE,OAAO,EAAE;gBACP,OAAO;gBACP,KAAK,kBAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,UAAU,EAAE,IAAI,IAAK,KAAK,CAAE;aAC7D;SACF,CAAC;IACJ,CAAC;CAAA;AAtCD,sBAsCC;AAED,SAAS,OAAO,CACd,MAAc,EACd,SAAoB,EACpB,YAA0B;IAE1B,MAAM,OAAO,GAAG,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC;IACvD,MAAM,YAAY,GAAG,YAAY,CAAC,YAAY,CAAC,OAAO,CAAC;SACpD,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;SAC7C,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IACxB,OAAO,YAAY,CAAC;AACtB,CAAC"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import type { JsonObject } from '@angular-devkit/core';
|
2
|
+
import type { Linter } from 'eslint';
|
2
3
|
|
3
4
|
export interface Schema extends JsonObject {
|
4
5
|
eslintConfig: string | null;
|
@@ -18,6 +19,7 @@ export interface Schema extends JsonObject {
|
|
18
19
|
cacheStrategy: 'content' | 'metadata' | null;
|
19
20
|
rulesdir: string[];
|
20
21
|
resolvePluginsRelativeTo: string | null;
|
22
|
+
reportUnusedDisableDirectives: Linter.RuleLevel | null;
|
21
23
|
}
|
22
24
|
|
23
25
|
type Formatter =
|
@@ -112,6 +112,12 @@
|
|
112
112
|
"resolvePluginsRelativeTo": {
|
113
113
|
"type": "string",
|
114
114
|
"description": "The equivalent of the `--resolve-plugins-relative-to` flag on the ESLint CLI."
|
115
|
+
},
|
116
|
+
"reportUnusedDisableDirectives": {
|
117
|
+
"type": "string",
|
118
|
+
"default": "off",
|
119
|
+
"enum": ["off", "warn", "error"],
|
120
|
+
"description": "The equivalent of the `--report-unused-disable-directives` flag on the ESLint CLI."
|
115
121
|
}
|
116
122
|
},
|
117
123
|
"required": ["lintFilePatterns"]
|
@@ -43,6 +43,7 @@ function lint(eslintConfigPath, options) {
|
|
43
43
|
* not be any html files in the project, so keeping it true would break linting everytime
|
44
44
|
*/
|
45
45
|
errorOnUnmatchedPattern: false,
|
46
|
+
reportUnusedDisableDirectives: options.reportUnusedDisableDirectives || undefined,
|
46
47
|
});
|
47
48
|
return yield eslint.lintFiles(options.lintFilePatterns);
|
48
49
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"eslint-utils.js","sourceRoot":"","sources":["../../../../../../../packages/linter/src/executors/eslint/utility/eslint-utils.ts"],"names":[],"mappings":";;;;AAGA,SAAsB,UAAU;;QAC9B,IAAI,MAAM,CAAC;QACX,IAAI;YACF,MAAM,GAAG,2CAAa,QAAQ,EAAC,CAAC;YAChC,OAAO,MAAM,CAAC;SACf;QAAC,WAAM;YACN,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;SACvE;IACH,CAAC;CAAA;AARD,gCAQC;AAED,SAAsB,IAAI,CACxB,gBAAoC,EACpC,OAAe;;QAEf,MAAM,aAAa,GAA8B,MAAM,UAAU,EAAE,CAAC;QAEpE,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,MAAM,CAAC;YACtC;;;eAGG;YACH,WAAW,EAAE,CAAC,OAAO,CAAC,UAAU;YAChC,kBAAkB,EAAE,gBAAgB;YACpC,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,SAAS;YAC3C,GAAG,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG;YAClB,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK;YACtB,aAAa,EAAE,OAAO,CAAC,aAAa,IAAI,SAAS;YACjD,aAAa,EAAE,OAAO,CAAC,aAAa,IAAI,SAAS;YACjD,wBAAwB,EAAE,OAAO,CAAC,wBAAwB,IAAI,SAAS;YACvE,SAAS,EAAE,OAAO,CAAC,QAAQ,IAAI,EAAE;YACjC;;;;;;;;;eASG;YACH,uBAAuB,EAAE,KAAK;
|
1
|
+
{"version":3,"file":"eslint-utils.js","sourceRoot":"","sources":["../../../../../../../packages/linter/src/executors/eslint/utility/eslint-utils.ts"],"names":[],"mappings":";;;;AAGA,SAAsB,UAAU;;QAC9B,IAAI,MAAM,CAAC;QACX,IAAI;YACF,MAAM,GAAG,2CAAa,QAAQ,EAAC,CAAC;YAChC,OAAO,MAAM,CAAC;SACf;QAAC,WAAM;YACN,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;SACvE;IACH,CAAC;CAAA;AARD,gCAQC;AAED,SAAsB,IAAI,CACxB,gBAAoC,EACpC,OAAe;;QAEf,MAAM,aAAa,GAA8B,MAAM,UAAU,EAAE,CAAC;QAEpE,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,MAAM,CAAC;YACtC;;;eAGG;YACH,WAAW,EAAE,CAAC,OAAO,CAAC,UAAU;YAChC,kBAAkB,EAAE,gBAAgB;YACpC,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,SAAS;YAC3C,GAAG,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG;YAClB,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK;YACtB,aAAa,EAAE,OAAO,CAAC,aAAa,IAAI,SAAS;YACjD,aAAa,EAAE,OAAO,CAAC,aAAa,IAAI,SAAS;YACjD,wBAAwB,EAAE,OAAO,CAAC,wBAAwB,IAAI,SAAS;YACvE,SAAS,EAAE,OAAO,CAAC,QAAQ,IAAI,EAAE;YACjC;;;;;;;;;eASG;YACH,uBAAuB,EAAE,KAAK;YAC9B,6BAA6B,EAC3B,OAAO,CAAC,6BAA6B,IAAI,SAAS;SACrD,CAAC,CAAC;QAEH,OAAO,MAAM,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC1D,CAAC;CAAA;AApCD,oBAoCC"}
|