@nrwl/linter 15.8.6 → 15.9.0-beta.1

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nrwl/linter",
3
- "version": "15.8.6",
3
+ "version": "15.9.0-beta.1",
4
4
  "private": false,
5
5
  "description": "The Linter plugin for Nx contains executors, generators and utilities used for linting JavaScript/TypeScript projects within an Nx workspace.",
6
6
  "repository": {
@@ -33,8 +33,8 @@
33
33
  "eslint": "^8.0.0"
34
34
  },
35
35
  "dependencies": {
36
- "@nrwl/devkit": "15.8.6",
37
- "@nrwl/js": "15.8.6",
36
+ "@nrwl/devkit": "15.9.0-beta.1",
37
+ "@nrwl/js": "15.9.0-beta.1",
38
38
  "@phenomnomnominal/tsquery": "4.1.1",
39
39
  "tmp": "~0.2.1",
40
40
  "tslib": "^2.3.0"
@@ -48,5 +48,5 @@
48
48
  "access": "public"
49
49
  },
50
50
  "types": "./index.d.ts",
51
- "gitHead": "7bf2c6a34189a34bff8ad526cea6d936de33ec31"
51
+ "gitHead": "0ef06e4af7c17cf84717a2941f82f3e41e5c2c89"
52
52
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getEslintTargets = void 0;
4
- const executor_options_utils_1 = require("@nrwl/workspace/src/utilities/executor-options-utils");
4
+ const executor_options_utils_1 = require("@nrwl/devkit/src/generators/executor-options-utils");
5
5
  function getEslintTargets(tree) {
6
6
  const eslintTargetNames = new Set();
7
7
  (0, executor_options_utils_1.forEachExecutorOptions)(tree, '@nrwl/linter:eslint', (_, __, target) => {
@@ -1 +1 @@
1
- {"version":3,"file":"eslint-targets.js","sourceRoot":"","sources":["../../../../../../packages/linter/src/generators/utils/eslint-targets.ts"],"names":[],"mappings":";;;AACA,iGAA8F;AAE9F,SAAgB,gBAAgB,CAAC,IAAU;IACzC,MAAM,iBAAiB,GAAG,IAAI,GAAG,EAAU,CAAC;IAC5C,IAAA,+CAAsB,EAAC,IAAI,EAAE,qBAAqB,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE;QACpE,iBAAiB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;IACH,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AAND,4CAMC"}
1
+ {"version":3,"file":"eslint-targets.js","sourceRoot":"","sources":["../../../../../../packages/linter/src/generators/utils/eslint-targets.ts"],"names":[],"mappings":";;;AACA,+FAA4F;AAE5F,SAAgB,gBAAgB,CAAC,IAAU;IACzC,MAAM,iBAAiB,GAAG,IAAI,GAAG,EAAU,CAAC;IAC5C,IAAA,+CAAsB,EAAC,IAAI,EAAE,qBAAqB,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE;QACpE,iBAAiB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;IACH,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AAND,4CAMC"}
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.lintWorkspaceRuleSchematic = exports.lintWorkspaceRuleGenerator = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const devkit_1 = require("@nrwl/devkit");
6
- const strings_1 = require("@nrwl/workspace/src/utils/strings");
6
+ const string_utils_1 = require("@nrwl/devkit/src/utils/string-utils");
7
7
  const path_1 = require("path");
8
8
  const ts = require("typescript");
9
9
  const workspace_lint_rules_1 = require("../../utils/workspace-lint-rules");
@@ -19,7 +19,7 @@ function lintWorkspaceRuleGenerator(tree, options) {
19
19
  tmpl: '',
20
20
  name: options.name,
21
21
  });
22
- const nameCamelCase = (0, strings_1.camelize)(options.name);
22
+ const nameCamelCase = (0, string_utils_1.camelize)(options.name);
23
23
  /**
24
24
  * Import the new rule into the workspace plugin index.ts and
25
25
  * register it ready for use in .eslintrc.json configs.
@@ -1 +1 @@
1
- {"version":3,"file":"workspace-rule.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AAC,CAAC;QAED,OAAO,wBAAwB,CAAC;;CACjC;AA9FD,gEA8FC;AAEY,QAAA,0BAA0B,GAAG,IAAA,2BAAkB,EAC1D,0BAA0B,CAC3B,CAAC"}
1
+ {"version":3,"file":"workspace-rule.js","sourceRoot":"","sources":["../../../../../../packages/linter/src/generators/workspace-rule/workspace-rule.ts"],"names":[],"mappings":";;;;AAAA,yCASsB;AACtB,sEAA+D;AAC/D,+BAA4B;AAC5B,iCAAiC;AACjC,2EAA0E;AAC1E,gGAAwG;AAOxG,SAAsB,0BAA0B,CAC9C,IAAU,EACV,OAA0C;;;QAE1C,2DAA2D;QAC3D,MAAM,wBAAwB,GAAG,MAAM,IAAA,4DAAkC,EACvE,IAAI,CACL,CAAC;QAEF,MAAM,OAAO,GAAG,IAAA,0BAAiB,EAC/B,6CAAsB,EACtB,MAAA,OAAO,CAAC,SAAS,mCAAI,EAAE,CACxB,CAAC;QAEF,+CAA+C;QAC/C,IAAA,sBAAa,EAAC,IAAI,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE;YACrD,IAAI,EAAE,EAAE;YACR,IAAI,EAAE,OAAO,CAAC,IAAI;SACnB,CAAC,CAAC;QAEH,MAAM,aAAa,GAAG,IAAA,uBAAQ,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAE7C;;;WAGG;QACH,MAAM,eAAe,GAAG,IAAA,0BAAiB,EAAC,6CAAsB,EAAE,UAAU,CAAC,CAAC;QAC9E,MAAM,2BAA2B,GAAG,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;QACxE,MAAM,qBAAqB,GAAG,EAAE,CAAC,gBAAgB,CAC/C,eAAe,EACf,2BAA2B,EAC3B,EAAE,CAAC,YAAY,CAAC,MAAM,EACtB,IAAI,CACL,CAAC;QAEF,SAAS,eAAe,CAAC,IAAa;YACpC,IACE,EAAE,CAAC,oBAAoB,CAAC,IAAI,CAAC;gBAC7B,EAA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