S
S
sergey19892019-08-17 23:19:46
JavaScript
sergey1989, 2019-08-17 23:19:46

How to reconfigure Sublime linter to ES6?

Good day. How to reconfigure Sublime to ES6 so that new operators are not highlighted like in the screenshot?
5d58615e40eb8201656759.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sunflowerz, 2019-09-25
@sergey1989

Add an .eslintrc file to the project and install eslint in the sublime and possibly in the project

{
  "extends": [
    "eslint:recommended"
  ],
  "parserOptions": {
    "ecmaVersion": 6
  },
  "env": {
    "node" : true
  }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question