@nrwl/linter 14.5.3 → 14.5.5

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.3](https://github.com/nrwl/nx/compare/14.5.2...14.5.3) (2022-08-04)
6
+ ## [14.5.5](https://github.com/nrwl/nx/compare/14.5.4...14.5.5) (2022-08-12)
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",
3
+ "version": "14.5.5",
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.3",
37
- "@nrwl/jest": "14.5.3",
36
+ "@nrwl/devkit": "14.5.5",
37
+ "@nrwl/jest": "14.5.5",
38
38
  "@phenomnomnominal/tsquery": "4.1.1",
39
- "nx": "14.5.3",
39
+ "nx": "14.5.5",
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": "72106d0d81ff66f92d4cbb0459dd70cbe1c7aefa"
48
+ "gitHead": "d9ebe0870de2bd309af1d790d57a2f66583c5839"
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,GAAG,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,YAAY,CAAC,CAAC;QAEzE,MAAM,KAAK,GAAG,EAAE,CAAC;QACjB,MAAM,MAAM,GAAG,EAAc,CAAC;QAC9B,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YAC9C,IAAI,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE;gBAChC,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;gBAChC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;aACnC;SACF;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;AArCD,sBAqCC;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
+ {"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,CA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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;SAC/B,CAAC,CAAC;QAEH,OAAO,MAAM,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC1D,CAAC;CAAA;AAlCD,oBAkCC"}
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"}