Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

When twoscript sections are present in SFC, some typescript-eslint rules do not work correctly inscript setup section #275

Open
@andreww2012

Description

@andreww2012

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:

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp