Skip to content
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): migrate projects using dep-check lint rule to ignore build config files #18882

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

jaysoo
Copy link
Member

@jaysoo jaysoo commented Aug 29, 2023

This PR adds a migration to add ignoredFiles option to @nx/dependency-checks for projects using vite, esbuild, and rollup. We need to ignore config files such as vite.config.ts so the packages imported in them are not marked as production dependencies by the lint rule.

Current Behavior

Expected Behavior

Related Issue(s)

Fixes #

@jaysoo jaysoo requested a review from a team as a code owner August 29, 2023 13:28
@jaysoo jaysoo requested a review from meeroslav August 29, 2023 13:28
@vercel
Copy link

vercel bot commented Aug 29, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Aug 29, 2023 2:25pm

(o) => !!o.rules?.['@nx/dependency-checks'],
(o) => {
const value = o.rules['@nx/dependency-checks'];
let ruleSeverity: 0 | 1 | 2 | 'error' | 'warn' | 'off';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is no longer correct. The current type doesn't support numbers

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was giving me type errors if I don't include them. I can cast as any as well.

@jaysoo jaysoo self-assigned this Aug 29, 2023
@jaysoo jaysoo added the scope: linter Issues related to Eslint support in Nx label Aug 29, 2023
@meeroslav meeroslav merged commit f7a7690 into nrwl:master Aug 30, 2023
4 checks passed
@jaysoo jaysoo deleted the feat/linter-migrate-ignore branch August 30, 2023 14:57
@github-actions
Copy link

github-actions bot commented Sep 5, 2023

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
scope: linter Issues related to Eslint support in Nx
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants