Skip to content

Instantly share code, notes, and snippets.

@me-shaon
Last active May 6, 2017 06:27
Show Gist options
  • Save me-shaon/6e111d40edd1bff8aa703cbf86e5d3d2 to your computer and use it in GitHub Desktop.
Save me-shaon/6e111d40edd1bff8aa703cbf86e5d3d2 to your computer and use it in GitHub Desktop.
Configuring eslint in Atom Editor
  • Install linter plugin in Atom
  • Install linter-eslint plugin in Atom
  • Create a .eslintrc file in project root
  • If there is no package.json file already in the project root, create one using:
npm init
  • Run the following command to working with the 'google eslint rules'-
npm install --save-dev eslint eslint-config-google

Other rules(like Airbnb) can be used too. Those have their own configuration.

  • Add the following to the .eslintrc file-
{
 "extends": "eslint-config-google"
}

That's all.

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