-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat(linter): add option to ignore files based on pattern #18863
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
a01d6b7
to
e9b9501
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good but please add migration as part of this PR (can be done separately as well)
cb27631
to
6b6d7e9
Compare
Doing some local testing before merging. |
- Useful for build config files that import dev-only dependencies
6b6d7e9
to
f23b2b0
Compare
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
This PR adds a
ignoredFiles
option to the@nx/dependency-checks
rule. Useful for build config files that import dev-only dependencies.The
@nx/js:lib
generator that adds the checks forpackage.json
will also ignore build configuration files such that packges imported in them will not count towards production dependencies.e.g.
vite.config.ts
importsvite
, which is not a production dependency so should not be reported as a missing dependency.Current Behavior
Expected Behavior
Related Issue(s)
Fixes #