Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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