Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork77
Open
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I'm usingeslint-plugin-vue.
- I'm sure the problem is a parser problem. (If you are not sure, search for the issue ineslint-plugin-vue repo and open the issue ineslint-plugin-vue repo if there is no solution.
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
What version of ESLint are you using?
9.34.0
What version ofeslint-plugin-vue andvue-eslint-parser are you using?
- vue-eslint-parser@10.2.0
- eslint-plugin-vue not used
What did you do?
If both<script setup> and<script> sections are present in SFC, some rules from at leasttypescript-eslint ESLint plugin start reporting less problems, but only in<script setup> section.<script> section shouldn't even contain anything for this problem to arise.
Some affected rules:
- @typescript-eslint/no-unused-vars
- @typescript-eslint/no-use-before-define
- @typescript-eslint/no-shadow
What did you expect to happen?
Other ESLint plugins receive correct information about SFC source code.
What actually happened?
They seemingly do not.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/vitejs-vite-2vzrvkgc
Runnpx eslint and observe that many problems from<script setup> block are not reported (expected: 8, actual: 5).
Comment out<script> section, runnpx eslint again and problems will be reported.
Additional comments
No response
Metadata
Metadata
Assignees
Labels
No labels