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

add a preset for ts #2406

Open
aladdin-add opened this issue Feb 18, 2024 · 1 comment
Open

add a preset for ts #2406

aladdin-add opened this issue Feb 18, 2024 · 1 comment

Comments

@aladdin-add
Copy link
Contributor

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

@FloEdelmann
Copy link
Member

You might want to try out the flat config support that is currently being implemented. See

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

No branches or pull requests

2 participants