@nx/eslint-plugin 16.7.0-beta.0 → 16.7.0-beta.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": "16.7.0-beta.
|
|
3
|
+
"version": "16.7.0-beta.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": {
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@nrwl/eslint-plugin-nx": "16.7.0-beta.
|
|
37
|
-
"@nx/devkit": "16.7.0-beta.
|
|
38
|
-
"@nx/js": "16.7.0-beta.
|
|
36
|
+
"@nrwl/eslint-plugin-nx": "16.7.0-beta.3",
|
|
37
|
+
"@nx/devkit": "16.7.0-beta.3",
|
|
38
|
+
"@nx/js": "16.7.0-beta.3",
|
|
39
39
|
"@typescript-eslint/type-utils": "^5.60.1",
|
|
40
40
|
"@typescript-eslint/utils": "^5.60.1",
|
|
41
41
|
"chalk": "^4.1.0",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"migrations": "./migrations.json"
|
|
52
52
|
},
|
|
53
53
|
"types": "./src/index.d.ts",
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "118faf4e432667fd041954d96aa6c9c99fea5ebd"
|
|
55
55
|
}
|
|
@@ -34,8 +34,8 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
|
|
|
34
34
|
},
|
|
35
35
|
],
|
|
36
36
|
messages: {
|
|
37
|
-
missingDependency: `The "{{projectName}}" uses the following packages, but they are missing from the "{{section}}":{{packageNames}}`,
|
|
38
|
-
obsoleteDependency: `The "{{packageName}}" package is not used by "{{projectName}}".`,
|
|
37
|
+
missingDependency: `The "{{projectName}}" project uses the following packages, but they are missing from the "{{section}}":{{packageNames}}`,
|
|
38
|
+
obsoleteDependency: `The "{{packageName}}" package is not used by "{{projectName}}" project.`,
|
|
39
39
|
versionMismatch: `The version specifier does not contain the installed version of "{{packageName}}" package: {{version}}.`,
|
|
40
40
|
missingDependencySection: `Dependency sections are missing from the "package.json" but following dependencies were detected:{{dependencies}}`,
|
|
41
41
|
},
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.packageExists = void 0;
|
|
4
|
-
const fs_1 = require("fs");
|
|
5
4
|
/**
|
|
6
5
|
* Checks if package is available
|
|
7
6
|
* @param name name of the package
|
|
@@ -9,11 +8,10 @@ const fs_1 = require("fs");
|
|
|
9
8
|
*/
|
|
10
9
|
function packageExists(name) {
|
|
11
10
|
try {
|
|
12
|
-
|
|
13
|
-
(0, fs_1.accessSync)(`./node_modules/.bin/${name}`);
|
|
11
|
+
require.resolve(name);
|
|
14
12
|
return true;
|
|
15
13
|
}
|
|
16
|
-
catch (
|
|
14
|
+
catch (_a) {
|
|
17
15
|
return false;
|
|
18
16
|
}
|
|
19
17
|
}
|