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

Unable to take effect in react(jsx file). #480

Closed
dhzhme opened this issue May 21, 2024 · 0 comments · Fixed by #481
Closed

Unable to take effect in react(jsx file). #480

dhzhme opened this issue May 21, 2024 · 0 comments · Fixed by #481

Comments

@dhzhme
Copy link
Contributor

dhzhme commented May 21, 2024

It seems that jsx file need to be specified manually in eslint.config.js to make eslint effective in react projects.

import antfu from '@antfu/eslint-config'

export default antfu({
  formatters: true,
  react: true,
  files: ['**/*.?([cm])jsx'],
})
image image
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 a pull request may close this issue.

1 participant