I
I
Igor Shumilovsky2015-11-10 16:10:08
JavaScript
Igor Shumilovsky, 2015-11-10 16:10:08

How to make eslint and es6 modules friends in Sublime Text 3?

Eslint swears at imports and spits out this error message: "illegal import declaration".
The funny thing is that if I run the same eslint, only through node js, then there are no errors.
Nobody faced? How to treat the plug disease?
my eslintrc:

{
  "parser": "babel-eslint",
  "env": {
    "browser": true,
    "node": true,
    "es6": true
  },
  "rules": {
    "strict": 0
  },
  "extends": ["standard", "standard-react"],
  "ecmaFeatures": {
    "modules": true
  }
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor Shumilovsky, 2015-11-11
@JiSeven

Rebooted computer - error gone

K
Konstantin Kitmanov, 2015-11-10
@k12th

Either there is some old version of eslint in the sublime, or it reads the config from somewhere else.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question