@nx/eslint-plugin
Advanced tools
{ | ||
"name": "@nx/eslint-plugin", | ||
"version": "0.0.0-pr-29935-b2840f8", | ||
"version": "0.0.0-pr-29993-0fbf3d3", | ||
"private": false, | ||
@@ -37,4 +37,4 @@ "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.", | ||
"dependencies": { | ||
"@nx/devkit": "0.0.0-pr-29935-b2840f8", | ||
"@nx/js": "0.0.0-pr-29935-b2840f8", | ||
"@nx/devkit": "0.0.0-pr-29993-0fbf3d3", | ||
"@nx/js": "0.0.0-pr-29993-0fbf3d3", | ||
"@typescript-eslint/type-utils": "^8.0.0", | ||
@@ -41,0 +41,0 @@ "@typescript-eslint/utils": "^8.0.0", |
@@ -13,2 +13,3 @@ "use strict"; | ||
const runtime_lint_utils_1 = require("../utils/runtime-lint-utils"); | ||
const project_graph_1 = require("nx/src/config/project-graph"); | ||
exports.RULE_NAME = 'enforce-module-boundaries'; | ||
@@ -332,2 +333,6 @@ exports.default = utils_1.ESLintUtils.RuleCreator(() => `https://github.com/nrwl/nx/blob/${devkit_1.NX_VERSION}/docs/generated/packages/eslint-plugin/documents/enforce-module-boundaries.md`)({ | ||
} | ||
if (!(0, project_graph_1.isProjectGraphProjectNode)(targetProject)) { | ||
return; | ||
} | ||
targetProject = targetProject; | ||
// check constraints between libs and apps | ||
@@ -334,0 +339,0 @@ // check for circular dependency |
210100
0.11%4702
0.11%