vuejs / vue-eslint-parser

The ESLint custom parser for `.vue` files.
MIT License
435 stars 74 forks source link

Missing typings for .vue files when running with typescript-eslint #231

Closed danieldasilva-smake closed 1 week ago

danieldasilva-smake commented 2 months ago

Before You File a Bug Report Please Confirm You Have Done The Following...

What version of ESLint are you using?

8.57.0

What version of eslint-plugin-vue and vue-eslint-parser are you using?

What did you do?

I created a new Vue.js project with TS + ESLint and updated the .eslintrc.cjs to add the @typescript-eslint/no-unsafe-argument rule.

I also set the parserOptions.project and parserOptions.parser options so that typescript-eslint works.

Configuration ```js /* eslint-env node */ require("@rushstack/eslint-patch/modern-module-resolution"); module.exports = { root: true, extends: [ "plugin:vue/vue3-essential", "eslint:recommended", "@vue/eslint-config-typescript", ], parserOptions: { ecmaVersion: "latest", project: "./tsconfig*.json", parser: { js: "@typescript-eslint/parser", jsx: "@typescript-eslint/parser", cjs: "@typescript-eslint/parser", mjs: "@typescript-eslint/parser", ts: "@typescript-eslint/parser", tsx: "@typescript-eslint/parser", cts: "@typescript-eslint/parser", mts: "@typescript-eslint/parser", "