-
Notifications
You must be signed in to change notification settings - Fork 49.6k
[eprh] Allow compiler rules to be opted-in but not in the preset #34672
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
Conversation
Follow up to #34649. This adds the compiler rules back so they can be opted-in 6.1.0, but aren't included in the presets as that would be a breaking change.
Right now you have to manually enable each rule individually, which means as a user you have to be aware of new rules that get added otherwise you'll miss them, like this: https://github.com/nkzw-tech/eslint-config/blob/main/index.js#L84-L100 Could you add a preset that enables all the React compiler rules? For example, many ESLint plugins ship a "strict" preset, or alternatively you could have |
Since we are here, is the const jobs = useMemo(
() => data.jobs?.edges?.filter(filterNodes),
[data.jobs?.edges],
); where The previous singular react-compiler rule was not firing for similar |
@cpojer can you file an issue to discuss? |
@josephsavona here you go: #34680 |
Follow up to #34649. This adds the compiler rules back so they can be opted-in 6.1.0, but aren't included in the presets as that would be a breaking change.