@nx/eslint-plugin 20.4.2 → 20.4.3

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": "20.4.2",
3
+ "version": "20.4.3",
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": {
@@ -34,8 +34,8 @@
34
34
  }
35
35
  },
36
36
  "dependencies": {
37
- "@nx/devkit": "20.4.2",
38
- "@nx/js": "20.4.2",
37
+ "@nx/devkit": "20.4.3",
38
+ "@nx/js": "20.4.3",
39
39
  "@typescript-eslint/type-utils": "^8.0.0",
40
40
  "@typescript-eslint/utils": "^8.0.0",
41
41
  "chalk": "^4.1.0",
@@ -129,7 +129,13 @@ exports.default = utils_1.ESLintUtils.RuleCreator(() => `https://github.com/nrwl
129
129
  packageRange.startsWith('file:') ||
130
130
  npmDependencies[packageName] === '*' ||
131
131
  packageRange === '*' ||
132
- packageRange === 'workspace:*' ||
132
+ packageRange.startsWith('workspace:') ||
133
+ /**
134
+ * Catalogs can be named, or left unnamed
135
+ * So just checking up until the : will catch both cases
136
+ * e.g. catalog:some-catalog or catalog:
137
+ */
138
+ packageRange.startsWith('catalog:') ||
133
139
  (0, semver_1.satisfies)(npmDependencies[packageName], packageRange, {
134
140
  includePrerelease: true,
135
141
  })) {