Skip to content

add a preset for ts #2406

Open
Open
@aladdin-add

Description

@aladdin-add

Tell us about your environment

  • ESLint version: 8.x, 9.x
  • eslint-plugin-vue version: latest
  • Vue version: n/a
  • Node version: n/a

The problem you want to solve.
Now the user needs to set parserOptions.parser to support ts, which is not very user friendly.

Your take on the correct solution to problem.
Add a new config, so the usage can be something like:

import pluginVue from "eslint-plugin-vue";

export default [
  pluginVue.configs.recommended,
  pluginVue.configs.typescript,
]

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions