javascript - what's the equivalent of jscs `disallowKeywordsOnNewLine` in eslint? -
what's equivalent of jscs
's disallowkeywordsonnewline
in eslint
? can't find in docs :(
disallowkeywordsonnewline disallows placing keywords on new line.
type: array
values: array of quoted keywords
example
"disallowkeywordsonnewline": ["else"]
valid
if (x < 0) { x++; } else { x--; }
invalid
if (x < 0) { x++; } else { x--; }
maybe option not available in eslint
?
what looking brace-style
in eslint
. link: http://eslint.org/docs/rules/brace-style
Comments
Post a Comment