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

Consider separating hook rules to include .js and .ts file extensions #96

Open
wallzero opened this issue Dec 11, 2024 · 0 comments
Open

Comments

@wallzero
Copy link
Contributor

I often extract my hooks to allow them to be more reusable and composable.

I also really appreciate the lint rules for hooks.

But since my hooks do not contain JSX I don't use the .jsx/.tsx extensions. So I could either rename my hooks to use .jsx/.tsx extensions or modify the canonical rules to include linting .js/.ts files. I did the latter for now.

But I think the best approach would be to pull rules that aren't scanning JSX such as hook rules and put them in a new ruleset that includes .js/.ts files.

Thanks!

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

1 participant