Skip to content

Instantly share code, notes, and snippets.

@raftheunis87
Last active June 15, 2023 14:07
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save raftheunis87/91ab96bfc82f3c670feddbb009700464 to your computer and use it in GitHub Desktop.
Save raftheunis87/91ab96bfc82f3c670feddbb009700464 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
@AronSchoffer
Copy link

nice, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment