Skip to content

IDE ESLint integrations do not get full configuration #1006

@yangmingshan

Description

@yangmingshan

Version

3.0.0-beta.6

Reproduction link

https://github.com/yangmingshan/vue-cli-demo

Steps to reproduce

If use import() ESLint will show error message [eslint] Parsing error: Unexpected token import in VS Code, but npm run lint is ok, don't know why.

What is expected?

ESLint can parse experimental syntax

What is actually happening?

ESLint can't parse experimental syntax


eslint-config-prettier eslint-config-standard eslint-config-airbnb both use default parser which can't parse experimental syntax like import() for now, use babel-eslint can solve this problem.

Is this on purpose or a mistake?

If this is a mistake, I'm happy to open a PR 😜

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions