Skip to content

Add no-restricted-imports rule #1792

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 2 commits into from
Closed

Conversation

jbhammon
Copy link

@jbhammon jbhammon commented Feb 5, 2022

This PR adds a no-restricted-imports rule to check for incorrect imports from some '@vue' packages. The new rule will tell the user that they should import those APIs directly from 'vue' instead.

I created some trivial tests to help me check that I extended the existing eslint rule correctly, and they're not all passing so I must have done something wrong. Any advice from maintainers would be appreciated, and I'll happily make updates to get this working.

Resolves #1780

It extends the existing no-restricted-imports rule from eslint. Seems
configured correctly, but my initial tests aren't passing yet.
Copy link
Member

@FloEdelmann FloEdelmann left a comment

Choose a reason for hiding this comment

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

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.

Rule Proposal: disallow imports from @vue/* dependencies
2 participants