Skip to content

Instantly share code, notes, and snippets.

@RomiC
Last active April 19, 2017 11:44
Show Gist options
  • Save RomiC/25af2191d2152fcc688b90c23781ab39 to your computer and use it in GitHub Desktop.
Save RomiC/25af2191d2152fcc688b90c23781ab39 to your computer and use it in GitHub Desktop.
Eslint settings
{
"parserOptions": {
"ecmaVersion": 6
},
"plugins": [],
"extends": [
"eslint:recommended"
],
"rules": {
"comma-spacing": ["warn"],
"indent": ["warn", 2, {"SwitchCase": 1}],
"key-spacing": ["warn", {
"beforeColon": false,
"afterColon": true
}],
"keyword-spacing": ["warn", {"after": true}],
"no-extra-boolean-cast": "off",
"no-multi-spaces": "warn",
"no-spaced-func": "warn",
"no-unused-vars": "warn",
"object-curly-spacing": ["warn", "never"],
"semi": ["warn", "always"],
"space-before-blocks": ["warn", "always"],
"space-before-function-paren": ["warn", "never"],
"spaced-comment": ["warn", "always"],
"space-infix-ops": "warn",
"space-in-parens": ["warn", "never"],
"space-unary-ops": ["warn", {
"words": true,
"nonwords": false
}]
},
"env": {
"browser": true,
"commonjs": true,
"node": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment