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

Its possible to disable these rules ONLY for all class components? #49

Open
douglasjunior opened this issue Feb 11, 2022 · 3 comments
Open

Comments

@douglasjunior
Copy link

When we add this rules in a old project with dozen of class components, we need to handle with dozen of lint warnings.

@douglasjunior douglasjunior changed the title Its possible to disable these rules for all class components? Its possible to disable these rules ONLY for all class components? Feb 11, 2022
@huynhducduy
Copy link
Contributor

AFAIK this is very hard to implement. One possible path is using a naming convention and configuring the plugin to ignore/include specific components with regular expressions.

@cvazac
Copy link
Owner

cvazac commented Jan 7, 2025

@douglasjunior thanks for your patience! why would we want this disabled for class components?

@douglasjunior
Copy link
Author

Hi @cvazac , thank you for responding.

Because of legacy projects with a lot of class components that we can't migrate to hooks.

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

No branches or pull requests

3 participants