Confused by "@nrwl/nx/enforce-module-boundaries" rule #6258
Replies: 3 comments 2 replies
-
Hi @mandaputtra, Based on the paths in your screenshot, you should not see this message. It could be that TS process running the lint did not pick up your changes. The TS server in VS Code is often slow. Try to restart the TS server process or the whole IDE and check if error remains. You can always run Regarding your absolute vs relative path question: That being said, if you still don't like this rule, you can apply flag "@nrwl/nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allowCircularSelfDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
] |
Beta Was this translation helpful? Give feedback.
-
I also stumbled on this. I liked the idea of importing from the self project using tsconfig paths ( It would be more useful if the rule came with autofixers, because another point is that a) the IDE autosuggests the tsconfig path format ( |
Beta Was this translation helpful? Give feedback.
-
Are any compilation output differences or side effects introduced if |
Beta Was this translation helpful? Give feedback.
-
Hello, this is my first time using nx and react. I maybe had some feedback and question here. This rule require you to use relative import on a shared lib. That is mean you should use
'../../path/to/your/file/'
it doesn't make sense, I think. It will be more useful if the rule would be use absolute import in shared libsWhat do you think? Are there any way to reverse this config? My ESLint file.
Beta Was this translation helpful? Give feedback.
All reactions