Skip to content

Instantly share code, notes, and snippets.

@peterver
Last active December 12, 2016 23:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterver/0ceb63bc5ce40311c3a13a4e8750ad11 to your computer and use it in GitHub Desktop.
Save peterver/0ceb63bc5ce40311c3a13a4e8750ad11 to your computer and use it in GitHub Desktop.
Standard eslintrc
{
"env": {
"browser": true
},
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
},
"globals": {
"_" : true,
"jasmine": true,
"module": true,
"require": true,
},
"rules": {
"eqeqeq": 1,
"guard-for-in": 2,
"block-scoped-var": 2,
"linebreak-style": 2,
"no-loop-func": 2,
"max-depth": [
2,
3
],
"no-caller": 2,
"no-irregular-whitespace": 2,
"no-new": 2,
"valid-typeof": 2,
"no-shadow": 2,
"no-undef": 1,
"no-unused-vars": [
2,
{
"args": "after-used"
}
],
"no-empty": 2,
"brace-style": 2,
"no-mixed-spaces-and-tabs": 2,
"no-multiple-empty-lines": 2,
"no-multi-str": 2,
"no-multi-spaces": 2,
"one-var": [
2,
"never"
],
"operator-linebreak": [
2,
"before"
],
"space-unary-ops": [
2,
{
"words": false,
"nonwords": false
}
],
"no-spaced-func": 2,
"array-bracket-spacing": [
2,
"never"
],
"space-in-parens": [
2,
"never"
],
"yoda": [
2,
"never"
],
"comma-style": [
2,
"last"
],
"no-else-return": 2,
"sort-imports": 2,
"newline-after-var": [
2,
"always"
],
"eol-last": 2,
"wrap-iife": 2,
"semi": [
2,
"always"
],
"space-infix-ops": 2,
"comma-spacing": [
2,
{
"after": true
}
],
"keyword-spacing": [
2,
{
"overrides": {},
"before": true
}
],
"key-spacing": [
2,
{
"beforeColon": true,
"afterColon": true
}
],
"space-before-blocks": [
2,
"always"
],
"space-before-function-paren": [
2,
"always"
],
"consistent-this": [
2,
"that"
],
"constructor-super": 1,
"generator-star-spacing": 0,
"no-this-before-super": 1,
"no-var": 1,
"object-shorthand": 0,
"prefer-const": 1,
"no-const-assign" : 2
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment