Requires newline before line comments
Types: Boolean or Object
Values:
true: always require a newline before line commentsObject:"allExcept": "firstAfterCurly" Comments may be first line of block without extra padding"requirePaddingNewLinesBeforeLineComments": true
"requirePaddingNewLinesBeforeLineComments": { "allExcept": "firstAfterCurly" }
truevar a = 2;
var b = 3; // comment
// comment
return a;
function() {
// comment
}
{ "allExcept": "firstAfterCurly" }var a = 2;
// comment
return a;
function() {
// comment
}
var a = 2;
//comment
return a;
function() {
// comment
}