antfu / eslint-config

Anthony's ESLint config preset
https://eslint-config.antfu.me/
MIT License
3.81k stars 426 forks source link

Unable to track both js and ts files #498

Closed FireBushtree closed 3 months ago

FireBushtree commented 3 months ago

Describe the bug

When i use this config

import antfu from '@antfu/eslint-config'

export default antfu({
  vue: true,
  typescript: true,
  javascript: true,
})

i can not track the error in .js file, but i can track .ts file image

When i use this config

import antfu from '@antfu/eslint-config'

export default antfu({
  vue: true,
  typescript: false,
  javascript: true,
})

i can not track the error in .ts file, but i can track .js file image

Reproduction

https://github.com/FireBushtree/element-plus-max

System Info

- node: 18.12.1

- "eslint": "^8.57.0",
- "@antfu/eslint-config": "^2.20.0",

Used Package Manager

pnpm

Validations

Contributions