173e037fa6
And keep it that way, by making jscs config more opinionated. // FREEBIE
33 wiersze
659 B
Text
33 wiersze
659 B
Text
{
|
|
"disallowMixedSpacesAndTabs": true,
|
|
"disallowTrailingWhitespace": true,
|
|
"disallowNewlineBeforeBlockStatements": true,
|
|
"requireCommaBeforeLineBreak": true,
|
|
"requireSemicolons": true,
|
|
"requireSpaceBeforeBlockStatements": true,
|
|
"disallowSpacesInNamedFunctionExpression": {
|
|
"beforeOpeningRoundBrace": true
|
|
},
|
|
"requireSpacesInNamedFunctionExpression": {
|
|
"beforeOpeningCurlyBrace": true
|
|
},
|
|
"requireCurlyBraces": [
|
|
"if",
|
|
"else",
|
|
"for",
|
|
"while",
|
|
"do",
|
|
"try",
|
|
"catch"
|
|
],
|
|
"requireSpaceAfterKeywords": [
|
|
"if",
|
|
"else",
|
|
"for",
|
|
"while",
|
|
"case",
|
|
"try",
|
|
"typeof",
|
|
"return"
|
|
]
|
|
}
|