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

Restrict imports of classnames to cx #232

Merged
merged 2 commits into from
Feb 28, 2024
Merged

Conversation

fregante
Copy link
Contributor

@fregante fregante marked this pull request as ready for review February 28, 2024 16:54
{
message: "Use this instead: import cx from 'classnames'",
selector:
"ImportDeclaration[source.value=classnames] ImportDefaultSpecifier[local.name!=/cx/]",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It wasn't possible with no-restricted-imports after all

@fregante fregante merged commit 1b0ecb7 into main Feb 28, 2024
2 checks passed
@fregante fregante deleted the block-non-cx-classnames branch February 28, 2024 16:54
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.

Restrict imports of classnames to cx
1 participant