Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lexjacobs/7929f35f75849d1139c4bd76bf2ea653 to your computer and use it in GitHub Desktop.
Save lexjacobs/7929f35f75849d1139c4bd76bf2ea653 to your computer and use it in GitHub Desktop.
Setting up ESLint on VS Code with Airbnb JavaScript Style Guide
  1. cd coding-directory
  2. npm init -y
  3. npm install --save-dev --save-exact eslint eslint-config-airbnb-base eslint-plugin-import
  4. Create .eslintrc file with following content:
{
  "extends": "airbnb-base",
  "env": {
    "browser": true,
    "node": true
  }
} 
  1. Install ESLint plugin in Visual Studio Code
  2. Restart Visual Studio Code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment