Skip to content

False positives when using with Vue SFC #883

@IlCallo

Description

@IlCallo

What code were you trying to parse?
I'm using Quasar (Vue based, using SFCs) and there seems to be some kind of incompatibility between typescript-eslint/parser and vue-eslint-parser.

Related
vuejs/eslint-plugin-vue#944
vuejs/vue-eslint-parser#55

What did you expect to happen?
Linting working normally even in .vue files, given that it kind-of worked (with some limitations) pre v2.

What actually happened?
All .vue files show a low level Parsing error: '>' expected error.
Most rules somewhat related to JS/TS into templates linting will also fail.
In my case every v-if, v-on and v-bind usage generate an error corresponding to the usage of that directive.

Es.
image

Versions

package version
@typescript-eslint/parser 2.0.0
vue-eslint-parser 6.0.4
eslint-plugin-vue 5.2.3
TypeScript 3.5.3
ESLint 6.2.0
node 10.15.3
npm 6.4.1
yarn 1.16.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is neededpackage: parserIssues related to @typescript-eslint/parser

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy