Fix: no-unused-vars linter warning for variables set in script setup.

This commit is contained in:
baldo 2022-08-23 17:42:44 +02:00
parent 3312930d5a
commit 90ac67efbe
3 changed files with 15 additions and 0 deletions

View file

@ -9,6 +9,7 @@ module.exports = {
"@vue/eslint-config-typescript/recommended",
"@vue/eslint-config-prettier",
],
parser: "vue-eslint-parser",
env: {
"vue/setup-compiler-macros": true,
},

View file

@ -40,6 +40,7 @@
"typescript": "~4.7.4",
"vite": "^3.0.9",
"vitest": "^0.22.1",
"vue-eslint-parser": "^9.0.3",
"vue-tsc": "^0.40.1"
}
}

View file

@ -2069,6 +2069,19 @@ vue-eslint-parser@^9.0.0, vue-eslint-parser@^9.0.1:
lodash "^4.17.21"
semver "^7.3.6"
vue-eslint-parser@^9.0.3:
version "9.0.3"
resolved "https://registry.yarnpkg.com/vue-eslint-parser/-/vue-eslint-parser-9.0.3.tgz#0c17a89e0932cc94fa6a79f0726697e13bfe3c96"
integrity sha512-yL+ZDb+9T0ELG4VIFo/2anAOz8SvBdlqEnQnvJ3M7Scq56DvtjY0VY88bByRZB0D4J0u8olBcfrXTVONXsh4og==
dependencies:
debug "^4.3.4"
eslint-scope "^7.1.1"
eslint-visitor-keys "^3.3.0"
espree "^9.3.1"
esquery "^1.4.0"
lodash "^4.17.21"
semver "^7.3.6"
vue-router@^4.1.4:
version "4.1.4"
resolved "https://registry.yarnpkg.com/vue-router/-/vue-router-4.1.4.tgz#290540caaf2c54e37a14dec047bd074002eca175"