- 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.