Use es6 and es6+ in eslint with babel

It seems like Eslint does not support ES6/ES6+ experimental features out of the box at the time of writing. To do that you need to install a dev dependency called babel-eslint and then specify it to be the parser in your eslintrc file.

npm install --save-dev babel-eslint
  "parser": "babel-eslint",

With this your arrow functions wont complain anymore upon linting.

Ryan Sukale

Ryan is just a regular guy next door trying to manage his life and finances.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *