Repository navigation
chore: migrate React example to @eslint-react/eslint-plugin - #768
lumirlumir wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
| jsx: true, | ||
| }, | ||
| }, | ||
| ecmaVersion: 2015, |
There was a problem hiding this comment.
I think setting ecmaVersion to 2015 here is also a relict, as before flat config it defaulted to "5".
In other words I think we should just remove the property, so it defaults to "latest".
| files: ["**/*.md/*.jsx"], | ||
| languageOptions: { | ||
| globals: { | ||
| React: false, |
There was a problem hiding this comment.
Since @eslint-react has no equivalent of react/react-in-jsx-scope, I think the React global isn't needed anymore.
Prerequisites checklist
AI acknowledgment
Check all that apply.
What is the purpose of this pull request?
Following the decision made in eslint/create-config#273.
This PR replaces
eslint-plugin-reactwith@eslint-react/react-pluginin examples to unblock the upgrade to ESLint v10.This was also discussed at the TSC meeting as a way to encourage users to adopt
@eslint-react/react-plugininstead.What changes did you make? (Give an overview)
This PR replaces
eslint-plugin-reactwith@eslint-react/react-pluginto unblock the upgrade to ESLint v10.Related Issues
eslint/create-config#273
Is there anything you'd like reviewers to focus on?
N/A
Summary by CodeRabbit