Skip to content

Add "ignore" option to silence errors for certain modules #5

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

Closed
wants to merge 1 commit into from

Conversation

silverlyra
Copy link

We have a similar configuration to what’s described in #2, where we can import top-level modules from the local package with a src/… alias. This simplifies what would be possibly deep relative imports like ../../../util/log. I know next.js also supports a similar feature natively.

To make this plugin usable in these cases, this adds an ignore option to the no-implicit rule’s options.

gmfvpereira added a commit to gmfvpereira/eslint-plugin-implicit-dependencies that referenced this pull request Mar 18, 2022
Also, renamed the option to `include` to be compatible with the
`ignore` option proposed here
lennym#5
@huksley
Copy link

huksley commented Jun 20, 2022

Any chance this is merged? I am using typescript aliases @/lib, @/components and cannot use this good eslint rule because it does not ignore those declarations.

@silverlyra
Copy link
Author

If anyone needs this functionality in the meantime, we publish our build to NPM as @fable/eslint-plugin-implicit-dependencies.

@fablestudios fablestudios closed this by deleting the head repository Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants