@nx/eslint-plugin 16.6.0-beta.4 → 16.6.0-beta.6

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": "@nx/eslint-plugin",
3
- "version": "16.6.0-beta.4",
3
+ "version": "16.6.0-beta.6",
4
4
  "private": false,
5
5
  "description": "The eslint-plugin package is an ESLint plugin that contains a collection of recommended ESLint rule configurations which you can extend from in your own ESLint configs, as well as an Nx-specific lint rule called enforce-module-boundaries.",
6
6
  "repository": {
@@ -33,15 +33,16 @@
33
33
  }
34
34
  },
35
35
  "dependencies": {
36
- "@nrwl/eslint-plugin-nx": "16.6.0-beta.4",
37
- "@nx/devkit": "16.6.0-beta.4",
38
- "@nx/js": "16.6.0-beta.4",
36
+ "@nrwl/eslint-plugin-nx": "16.6.0-beta.6",
37
+ "@nx/devkit": "16.6.0-beta.6",
38
+ "@nx/js": "16.6.0-beta.6",
39
39
  "@typescript-eslint/type-utils": "^5.60.1",
40
40
  "@typescript-eslint/utils": "^5.60.1",
41
41
  "chalk": "^4.1.0",
42
42
  "confusing-browser-globals": "^1.0.9",
43
43
  "jsonc-eslint-parser": "^2.1.0",
44
- "semver": "7.5.3"
44
+ "semver": "7.5.3",
45
+ "tslib": "^2.3.0"
45
46
  },
46
47
  "publishConfig": {
47
48
  "access": "public"
@@ -50,5 +51,5 @@
50
51
  "migrations": "./migrations.json"
51
52
  },
52
53
  "types": "./src/index.d.ts",
53
- "gitHead": "b1a9ae7ce76697019b26ec9a172005840cca8da6"
54
+ "gitHead": "9aad21dbfb2b659e488b6626f59df58ab23c0032"
54
55
  }
@@ -124,7 +124,9 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
124
124
  }
125
125
  if (npmDependencies[packageName] === '*' ||
126
126
  packageRange === '*' ||
127
- (0, semver_1.satisfies)(npmDependencies[packageName], packageRange)) {
127
+ (0, semver_1.satisfies)(npmDependencies[packageName], packageRange, {
128
+ includePrerelease: true,
129
+ })) {
128
130
  return;
129
131
  }
130
132
  context.report({
@@ -5,7 +5,7 @@ const devkit_1 = require("@nx/devkit");
5
5
  const runtime_lint_utils_1 = require("./runtime-lint-utils");
6
6
  const chalk = require("chalk");
7
7
  const find_project_for_path_1 = require("nx/src/project-graph/utils/find-project-for-path");
8
- const file_utils_1 = require("nx/src/project-graph/file-utils");
8
+ const configuration_1 = require("nx/src/config/configuration");
9
9
  const internal_1 = require("@nx/js/src/internal");
10
10
  const nx_deps_cache_1 = require("nx/src/project-graph/nx-deps-cache");
11
11
  function ensureGlobalProjectGraph(ruleName) {
@@ -17,7 +17,7 @@ function ensureGlobalProjectGraph(ruleName) {
17
17
  !global.projectRootMappings ||
18
18
  !global.projectFileMap ||
19
19
  !(0, runtime_lint_utils_1.isTerminalRun)()) {
20
- const nxJson = (0, file_utils_1.readNxJson)();
20
+ const nxJson = (0, configuration_1.readNxJson)();
21
21
  global.workspaceLayout = nxJson.workspaceLayout;
22
22
  /**
23
23
  * Because there are a number of ways in which the rule can be invoked (executor vs ESLint CLI vs IDE Plugin),