antfu / eslint-config

Anthony's ESLint config preset

Home Page:https://eslint-config.antfu.me/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to take effect in react(jsx file).

dhzhme opened this issue · comments

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