-
Notifications
You must be signed in to change notification settings - Fork 1
eslint tools
Alice Maldonado edited this page Jul 8, 2017
·
2 revisions
I'd thought I'd share my .eslintrc.json
file. If you're using Atom, install shell commands via:
Atom -> Install Shell Commands
on OSX, and from the terminal use:
apm install linter linter-eslint linter-ui-default
project-folder/.eslintrc.json
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module"
},
"rules": {
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"no-console": 0
}
}
https://gist.github.com/alice-em/7eab7f54b6678373f80c788eee50d646