You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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!
The text was updated successfully, but these errors were encountered: