@nrwl/linter 13.10.0 → 13.10.1
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": "@nrwl/linter",
|
|
3
|
-
"version": "13.10.
|
|
3
|
+
"version": "13.10.1",
|
|
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",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@phenomnomnominal/tsquery": "4.1.1",
|
|
37
|
-
"@nrwl/devkit": "13.10.
|
|
38
|
-
"@nrwl/jest": "13.10.
|
|
37
|
+
"@nrwl/devkit": "13.10.1",
|
|
38
|
+
"@nrwl/jest": "13.10.1",
|
|
39
39
|
"tmp": "~0.2.1",
|
|
40
40
|
"tslib": "^2.3.0"
|
|
41
41
|
},
|
|
@@ -15,6 +15,9 @@ export interface Schema extends JsonObject {
|
|
|
15
15
|
quiet: boolean;
|
|
16
16
|
ignorePath: string | null;
|
|
17
17
|
hasTypeAwareRules: boolean;
|
|
18
|
+
cacheStrategy: 'content' | 'metadata' | null;
|
|
19
|
+
rulesdir: string[];
|
|
20
|
+
resolvePluginsRelativeTo: string | null;
|
|
18
21
|
}
|
|
19
22
|
|
|
20
23
|
type Formatter =
|
|
@@ -94,6 +94,24 @@
|
|
|
94
94
|
"hasTypeAwareRules": {
|
|
95
95
|
"type": "boolean",
|
|
96
96
|
"description": "When set to `true`, the linter will invalidate its cache when any of its dependencies changes."
|
|
97
|
+
},
|
|
98
|
+
"cacheStrategy": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"description": "Strategy to use for detecting changed files in the cache.",
|
|
101
|
+
"default": "metadata",
|
|
102
|
+
"enum": ["metadata", "content"]
|
|
103
|
+
},
|
|
104
|
+
"rulesdir": {
|
|
105
|
+
"type": "array",
|
|
106
|
+
"description": "The equivalent of the `--rulesdir` flag on the ESLint CLI.",
|
|
107
|
+
"default": [],
|
|
108
|
+
"items": {
|
|
109
|
+
"type": "string"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"resolvePluginsRelativeTo": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"description": "The equivalent of the `--resolve-plugins-relative-to` flag on the ESLint CLI."
|
|
97
115
|
}
|
|
98
116
|
},
|
|
99
117
|
"additionalProperties": false,
|
|
@@ -29,6 +29,9 @@ function lint(eslintConfigPath, options) {
|
|
|
29
29
|
fix: !!options.fix,
|
|
30
30
|
cache: !!options.cache,
|
|
31
31
|
cacheLocation: options.cacheLocation || undefined,
|
|
32
|
+
cacheStrategy: options.cacheStrategy || undefined,
|
|
33
|
+
resolvePluginsRelativeTo: options.resolvePluginsRelativeTo || undefined,
|
|
34
|
+
rulePaths: options.rulesdir || [],
|
|
32
35
|
/**
|
|
33
36
|
* Default is `true` and if not overridden the eslint.lintFiles() method will throw an error
|
|
34
37
|
* when no target files are found.
|
|
@@ -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;;;;;;;;;eASG;YACH,uBAAuB,EAAE,KAAK;SAC/B,CAAC,CAAC;QAEH,OAAO,MAAM,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC1D,CAAC;CAAA;
|
|
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;SAC/B,CAAC,CAAC;QAEH,OAAO,MAAM,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC1D,CAAC;CAAA;AAlCD,oBAkCC"}
|
package/src/utils/versions.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.eslintConfigPrettierVersion = exports.eslintVersion = exports.typescriptESLintVersion = exports.buildAngularVersion = exports.tslintToEslintConfigVersion = exports.tslintVersion = exports.nxVersion = void 0;
|
|
4
|
-
exports.nxVersion = '13.10.
|
|
4
|
+
exports.nxVersion = '13.10.1';
|
|
5
5
|
exports.tslintVersion = '~6.1.0';
|
|
6
6
|
exports.tslintToEslintConfigVersion = '^2.4.0';
|
|
7
7
|
exports.buildAngularVersion = '~13.3.0';
|