Skip to content

Instantly share code, notes, and snippets.

@peregrinogris
Created April 11, 2016 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peregrinogris/c72dfd1fb2bbeffee2df43cb5740f517 to your computer and use it in GitHub Desktop.
Save peregrinogris/c72dfd1fb2bbeffee2df43cb5740f517 to your computer and use it in GitHub Desktop.
Configure eslint based on airbnb style guides for ES5/ES6/ES7

Install: $ npm install eslint babel-eslint eslint-config-airbnb

.eslintrc:

{
  "extends": "airbnb/base",
  "parser": "babel-eslint",
  "rules": {
    "max-len": [2, 80, 2, {
      "ignoreUrls": true,
      "ignoreComments": false
    }],
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment