-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
TypeScript type assertion in setup script causes parsing error #177
Comments
It looks like your configuration has I think you should use |
@ota-meshi OK, should I be filing an issue with |
I filed vuejs/eslint-config-typescript#55. I agree that using |
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
8.32.0
What version of
eslint-plugin-vue
andvue-eslint-parser
are you using?What did you do?
Configuration
What did you expect to happen?
Code lints without errors; or, at least, ESLint is able to parse the Vue component source file.
What actually happened?
Closing brace of the
incrementCount()
function produces the following parsing error:Link to Minimal Reproducible Example
https://github.com/dmolesUC/ts-test
Additional comments
This is the out-of-the box Vite Vue3/Typescript example, slightly modified to add ESLint and the offending code.
Run
yarn lint
from the project root (oryarn eslint --ext .js,.ts,.vue src
).Relevant code is in
src/components/HelloWorld.vue
.Note that identical code in
src/helpers/helpers.ts
parses & lints without error.The text was updated successfully, but these errors were encountered: