2
0
mirror of https://github.com/webgefrickel/dotfiles synced 2024-11-09 13:10:27 +00:00
steffen-dotfiles/eslintrc

61 lines
1.6 KiB
Plaintext
Raw Normal View History

{
"env": {
"browser": true,
2015-07-08 14:25:10 +00:00
"es6": true,
"node": true
},
2015-07-08 14:25:10 +00:00
"ecmaFeatures": {
"modules": true
},
"rules": {
"no-console": 0,
"block-scoped-var": 2,
2015-01-11 20:42:59 +00:00
"default-case": 1,
2015-07-08 14:25:10 +00:00
"dot-location": [ 2, "object" ],
"no-div-regex": 2,
2015-01-11 20:42:59 +00:00
"no-else-return": 1,
"no-floating-decimal": 2,
"no-self-compare": 2,
"no-void": 2,
"vars-on-top": 2,
2015-01-11 20:42:59 +00:00
"wrap-iife": [ 2, "inside" ],
2015-07-08 14:25:10 +00:00
"array-bracket-spacing": [ 2, "always" ],
2015-01-11 20:42:59 +00:00
"brace-style": [ 2, "1tbs", { "allowSingleLine": false } ],
"comma-style": [ 2, "last" ],
2015-07-08 14:25:10 +00:00
"computed-property-spacing": [ 2, "always" ],
2015-01-11 20:42:59 +00:00
"consistent-this": [ 1, "that" ],
"func-style": [ 2, "expression" ],
2015-07-08 14:25:10 +00:00
"indent": [ 2, 2 ],
"linebreak-style": [ 2, "unix" ],
2015-01-11 20:42:59 +00:00
"max-nested-callbacks": [ 1, 4 ],
2015-07-08 14:25:10 +00:00
"newline-after-var": [ 1, "always" ],
2015-01-11 20:42:59 +00:00
"no-lonely-if": 1,
"no-multiple-empty-lines": [ 1, { "max": 2 } ],
"no-nested-ternary": 2,
2015-07-08 14:25:10 +00:00
"object-curly-spacing": [ 2, "always" ],
"one-var": [ 2, "never" ],
2015-01-11 20:42:59 +00:00
"operator-assignment": [ 2, "always" ],
2015-07-08 14:25:10 +00:00
"operator-linebreak": [ 2, "after" ],
2015-01-11 20:42:59 +00:00
"quotes": [ 2, "single", "avoid-escape" ],
2015-07-08 14:25:10 +00:00
"space-after-keywords": [ 2, "always" ],
2015-01-11 20:42:59 +00:00
"space-before-blocks": [ 2, "always" ],
2015-07-08 14:25:10 +00:00
"space-before-function-paren": [ 2, "always" ],
2015-01-11 20:42:59 +00:00
"space-in-parens": [ 2, "never" ],
2015-07-08 14:25:10 +00:00
"spaced-comment": [ 2, "always" ],
"wrap-regex": 2,
2015-07-08 14:25:10 +00:00
"generator-star-spacing": [ 1, "both" ],
"object-shorthand": [ 1, "always" ],
"prefer-const": [ 1 ],
2015-01-11 20:42:59 +00:00
"max-depth": [ 1, 4 ],
"max-len": [ 1, 120 ],
"no-bitwise": 2,
"no-plusplus": 2
}
}