@nrwl/linter 14.5.2 → 14.5.5-beta.0
Sign up to get free protection for your applications and to get access to all the features.
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.5-beta.0](https://github.com/nrwl/nx/compare/14.5.4...14.5.5-beta.0) (2022-08-09)
|
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.5-beta.0",
|
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.5-beta.0",
|
37
|
+
"@nrwl/jest": "14.5.5-beta.0",
|
38
38
|
"@phenomnomnominal/tsquery": "4.1.1",
|
39
|
-
"nx": "14.5.
|
39
|
+
"nx": "14.5.5-beta.0",
|
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": "efea1a511edfa904230b9e7b787ef71877ff6d9c"
|
49
49
|
}
|
@@ -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"}
|