-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rule proposal: no-restricted-paths #155
Comments
Neat! How would you propose defining the restricted zone? I can imagine either regex or a path relative to the eslint working directory, but each is fragile for different reasons. |
For me relative paths to the cwd of ESLint would work. Do you have any specific scenario in mind when relying on the cwd would become a problem? |
Not specifically, no. And IME ESLint is traditionally run by npm in the root of a package, so that should be fine. Just thinking it through. 😅 |
An ESLint consumer (plugin/editor/etc) can define a custom |
Given the following folder structure of a project:
I want to disallow that any file in the
client
folder can import any module from theserver
folder.The following should be invalid in
client/foo.js
:The text was updated successfully, but these errors were encountered: