Eslint: allow single-line functions and statements and don't require a newline before a return statement

This commit is contained in:
Kevin MacMartin 2016-05-17 20:40:51 -04:00
parent 32e4af8120
commit b0510955f3

View file

@ -30,7 +30,7 @@
"use-isnan": [ "warn" ], "use-isnan": [ "warn" ],
"valid-jsdoc": [ "warn" ], "valid-jsdoc": [ "warn" ],
"valid-typeof": [ "error" ], "valid-typeof": [ "error" ],
"curly": [ "warn" ], "curly": [ "warn", "multi" ],
"default-case": [ "warn" ], "default-case": [ "warn" ],
"dot-location": [ "warn", "property" ], "dot-location": [ "warn", "property" ],
"eqeqeq": [ "warn", "smart" ], "eqeqeq": [ "warn", "smart" ],
@ -83,7 +83,7 @@
"yoda": [ "warn" ], "yoda": [ "warn" ],
"array-bracket-spacing": [ "warn", "always" ], "array-bracket-spacing": [ "warn", "always" ],
"block-spacing": [ "warn" ], "block-spacing": [ "warn" ],
"brace-style": [ "warn" ], "brace-style": [ "warn", "1tbs", { "allowSingleLine": true } ],
"comma-spacing": [ "warn" ], "comma-spacing": [ "warn" ],
"comma-style": [ "warn" ], "comma-style": [ "warn" ],
"computed-property-spacing": [ "warn" ], "computed-property-spacing": [ "warn" ],
@ -92,7 +92,6 @@
"keyword-spacing": [ "warn" ], "keyword-spacing": [ "warn" ],
"linebreak-style": [ "warn" ], "linebreak-style": [ "warn" ],
"newline-after-var": [ "warn" ], "newline-after-var": [ "warn" ],
"newline-before-return": [ "warn" ],
"no-lonely-if": [ "warn" ], "no-lonely-if": [ "warn" ],
"no-multiple-empty-lines": [ "warn", { "max": 1 } ], "no-multiple-empty-lines": [ "warn", { "max": 1 } ],
"no-spaced-func": [ "warn" ], "no-spaced-func": [ "warn" ],