Skip to content

Instantly share code, notes, and snippets.

@ha404
Last active January 18, 2018 08:17
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ha404/9a26dae16779ecfd762e to your computer and use it in GitHub Desktop.
Save ha404/9a26dae16779ecfd762e to your computer and use it in GitHub Desktop.
Airbnb JavaScript Style Guide() {

Quick start guide to using Airbnb's style with ESLint.

  1. Navigate to your project directory and run this:
npx install-peerdeps --dev eslint-config-airbnb
  1. Save an .eslintrc file in your project directory:
{
  "extends": "airbnb"
}

Optional: To extend your .eslintrc config with extra rules, you can do the following:

{
  "extends": "airbnb",
  "rules": {
    # "max-len": 0
  },
  "globals": {
    # "Promise": true
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment