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

refactor!: migrate from eslint-plugin-react to eslint react #453

Merged
merged 3 commits into from Apr 17, 2024

Conversation

hyoban
Copy link
Contributor

@hyoban hyoban commented Apr 16, 2024

Description

Linked Issues

close #452

Additional context

Sorry for direct ping, maybe @Rel1cx @SukkaW would like to look at this.

Copy link

netlify bot commented Apr 16, 2024

Deploy Preview for melodious-froyo-4871f8 ready!

Name Link
🔨 Latest commit 7e30acd
🔍 Latest deploy log https://app.netlify.com/sites/melodious-froyo-4871f8/deploys/661e8c0254c7700008a33561
😎 Deploy Preview https://deploy-preview-453--melodious-froyo-4871f8.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@hyoban hyoban marked this pull request as ready for review April 16, 2024 14:26
'react/no-useless-fragment': 'warn',
'react/prefer-destructuring-assignment': 'warn',
'react/prefer-shorthand-boolean': 'warn',
'react/prefer-shorthand-fragment': 'warn',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, actually, they are completely separate implementations with unrelated sets of rules? I thought it was a fork

Copy link
Contributor Author

@hyoban hyoban Apr 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not just a fork, you can understand their differences from the links provided in the issue. https://eslint-react.xyz/docs/faq

It does implement some rules in eslint-plugin-react. Rel1cx/eslint-react#85.

For me, its advantages are:

  • It's a modern rewrite with TypeScript
  • It can lint with type information
  • It removes all Stylistic rules

@antfu antfu merged commit 86a74c9 into antfu:main Apr 17, 2024
8 checks passed
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.

Introduce eslint-react
2 participants