-
-
Notifications
You must be signed in to change notification settings - Fork 643
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
Update to ESLint v9 / flat config, add regex and new react lints #10364
Conversation
One blocker is that eslint-plugin-react is not compatible with eslint 9, even with the compatibility shims, because they removed some support that was long-deprecated. |
Currently just waiting on hluisson/eslint-plugin-jsx-expressions#18 |
We'll also need to finally give up on fork-ts-checker |
// eslint-disable-next-line @eslint-react/hooks-extra/prefer-use-state-lazy-initialization | ||
const [selectedFilters, setSelectedFilters] = useState<Option<FilterPillType>[]>(emptyArray()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this just be useState<...>(emptyArray)
? Not that it matters much
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could - I struggled with it a bit because emptyarray should be inlined and that's cheaper than conditionally executing a function
I need to wait for more of the ecosystem to support eslint v9, but in the meantime here's some of the work to move over to the new config system.