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

Update to ESLint v9 / flat config, add regex and new react lints #10364

Merged
merged 12 commits into from
Aug 5, 2024

Conversation

bhollis
Copy link
Contributor

@bhollis bhollis commented Apr 26, 2024

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.

@bhollis
Copy link
Contributor Author

bhollis commented Apr 26, 2024

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.

@bhollis
Copy link
Contributor Author

bhollis commented May 9, 2024

@bhollis
Copy link
Contributor Author

bhollis commented May 11, 2024

Currently just waiting on hluisson/eslint-plugin-jsx-expressions#18

@bhollis
Copy link
Contributor Author

bhollis commented May 11, 2024

We'll also need to finally give up on fork-ts-checker

@bhollis bhollis marked this pull request as ready for review August 5, 2024 05:04
package.json Outdated Show resolved Hide resolved
@bhollis bhollis changed the title Start eslint v9 stuff Update to ESLint v9 / flat config, add regex and new react lints Aug 5, 2024
Comment on lines +60 to 61
// eslint-disable-next-line @eslint-react/hooks-extra/prefer-use-state-lazy-initialization
const [selectedFilters, setSelectedFilters] = useState<Option<FilterPillType>[]>(emptyArray());
Copy link
Member

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

Copy link
Contributor Author

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

@bhollis bhollis merged commit cc6e279 into master Aug 5, 2024
8 checks passed
@bhollis bhollis deleted the eslintv9 branch August 5, 2024 21:34
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

Successfully merging this pull request may close these issues.

2 participants