2
0
mirror of https://github.com/webgefrickel/dotfiles synced 2024-11-11 07:10:40 +00:00
steffen-dotfiles/eslintrc
2015-05-05 13:18:38 +02:00

48 lines
1.2 KiB
Plaintext

{
"env": {
"browser": true,
"node": true
},
"rules": {
"no-console": 0,
"no-reserved-keys": 2,
"block-scoped-var": 2,
"default-case": 1,
"no-div-regex": 2,
"no-else-return": 1,
"no-floating-decimal": 2,
"no-process-env": 1,
"no-self-compare": 2,
"no-void": 2,
"vars-on-top": 2,
"wrap-iife": [ 2, "inside" ],
"indent": [ 2, 2 ],
"brace-style": [ 2, "1tbs", { "allowSingleLine": false } ],
"comma-style": [ 2, "last" ],
"consistent-this": [ 1, "that" ],
"func-style": [ 2, "expression" ],
"max-nested-callbacks": [ 1, 4 ],
"no-nested-ternary": 2,
"no-lonely-if": 1,
"no-multiple-empty-lines": [ 1, { "max": 2 } ],
"no-nested-ternary": 2,
"operator-assignment": [ 2, "always" ],
"quotes": [ 2, "single", "avoid-escape" ],
"space-after-function-name": [ 2, "never" ],
"space-after-keywords": [ 2, "always", { "checkFunctionKeyword": true } ],
"space-before-blocks": [ 2, "always" ],
"space-in-brackets": [ 2, "always" ],
"space-in-parens": [ 2, "never" ],
"spaced-line-comment": [ 2, "always" ],
"wrap-regex": 2,
"max-depth": [ 1, 4 ],
"max-len": [ 1, 120 ],
"no-bitwise": 2,
"no-plusplus": 2
}
}