Allow single line brace-style

As we sometimes use (x) => {foo = x;}, especially for react
components, but probably no reason not to allow it generally.
This commit is contained in:
David Baker
2017-01-23 14:18:09 +00:00
parent a0ae0b3922
commit ca618f2bf2
+1 -1
View File
@@ -56,7 +56,7 @@ module.exports = {
// we set these to warnings, and assert that the number
// of warnings doesn't exceed a given threshold
"no-var": ["warn"],
"brace-style": ["warn"],
"brace-style": ["warn", "1tbs", {"allowSingleLine": true}],
"prefer-rest-params": ["warn"],
"prefer-spread": ["warn"],
"one-var": ["warn"],