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

Parsing errors when combined witheslint-plugin-vue as of 1.5.0 #404

Closed
Labels
bugSomething isn't workingpackage: typescript-estreeIssues related to @typescript-eslint/typescript-estree
@thebanjomatic

Description

@thebanjomatic

PR#367 seems to have introduced a number of unexpected false linter errors when used in combination witheslint-plugin-vue. I think the problem boils down to the assumption from the PR that this function will only get called twice if in watch or fix mode not being valid.

With single-file-components in .vue files, this function winds up getting called for each section of the file that may contain scripts. Naturally this includes the<script></script> block, but also includes things like interpolations and v-bind's, etc. Each time getting called with the samefilePath.

What code were you trying to parse?

See the following reproducer:
https://github.com/thebanjomatic/lint-repro

What did you expect to happen?

Running lint should not produce false errors

What actually happened?

Parsing appears to be broken and a multitude of different lint errors are produced.

Versions

packageversion
@typescript-eslint/typescript-estree>= 1.5.0
TypeScript3.3.4000
node8.15.0
npm6.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpackage: typescript-estreeIssues related to @typescript-eslint/typescript-estree

    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