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