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

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -