Skip to content
This repository was archived by the owner on Aug 18, 2021. It is now read-only.
This repository was archived by the owner on Aug 18, 2021. It is now read-only.

how to do that can babel-eslint support @babel/plugin-proposal-optional-chaining #767

Closed
@pandaCure

Description

@pandaCure
    "@babel/plugin-proposal-optional-chaining": "^7.2.0",
    "@vue/cli-plugin-babel": "^3.6.0",
    "@vue/cli-plugin-eslint": "^3.6.0",
    "@vue/cli-service": "^3.6.0",
    "@vue/eslint-config-standard": "^4.0.0",
    "axios": "^0.18.0",
    "babel-eslint": "^10.0.1",
    "babel-plugin-component": "^1.1.1",
    "eslint": "^5.16.0",
    "eslint-plugin-vue": "^5.0.0",

error

Parsing error: Invalid left-hand side in assignment expression
  25 |       return false
  26 |     }
> 27 |     config?.headers?.Authorization = [localStorage.getItem('Authorization') || '']
     |     ^
  28 |     return config
  29 |   },
  30 |   function (error) {esl

i use vs code, i want to use babel new feature but eslint always show errors

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