Skip to content

Unable to track both js and ts files #498

@FireBushtree

Description

@FireBushtree

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

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Contributions

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions