Show Buttons
Share On Facebook
Share On Twitter
Share On Google Plus
Share On Linkdin
Share On Reddit
Share On Stumbleupon
Contact us
Hide Buttons

Use es6 and es6+ in eslint with babel

It seems like Eslint does not sup­port ES6/ES6+ exper­i­men­tal fea­tures out of the box at the time of writ­ing. To do that you need to install a dev depen­dency called babel-eslint and then spec­ify it to be the parser in your eslin­trc file.

npm install --save-dev babel-eslint
//.eslintrc
{
  ...
  "parser": "babel-eslint",
  ...
}

With this your arrow func­tions wont com­plain any­more upon linting.

Ryan Sukale

Ryan is a UX engineer living in San Francisco, California.

You may also like...