-
Notifications
You must be signed in to change notification settings - Fork 1
/
.jscsrc
42 lines (38 loc) · 2.31 KB
/
.jscsrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
"disallowEmptyBlocks" : true,
"disallowKeywords" : ["with"],
"disallowKeywordsOnNewLine" : ["else"],
"disallowMixedSpacesAndTabs" : true,
"disallowNewlineBeforeBlockStatements" : true,
"disallowQuotedKeysInObjects" : "allButReserved",
"disallowSpaceAfterObjectKeys" : true,
"disallowSpaceAfterPrefixUnaryOperators" : true,
"disallowSpaceBeforeBinaryOperators" : [","],
"disallowSpaceBeforePostfixUnaryOperators" : true,
"disallowSpacesInNamedFunctionExpression" : {"beforeOpeningRoundBrace": true},
"disallowSpacesInsideArrayBrackets" : true,
"disallowSpacesInsideObjectBrackets" : true,
"disallowSpacesInsideParentheses" : true,
"disallowTrailingComma" : true,
"disallowTrailingWhitespace" : true,
"disallowYodaConditions" : true,
"requireBlocksOnNewline" : 1,
"requireCapitalizedConstructors" : true,
"requireCommaBeforeLineBreak" : true,
"requireCurlyBraces" : ["catch", "do", "else", "for", "if", "try", "while"],
"requireDotNotation" : true,
"requireMultipleVarDecl" : "onevar",
"requireOperatorBeforeLineBreak" : true,
"requireParenthesesAroundIIFE" : true,
"requireSpaceAfterBinaryOperators" : true,
"requireSpaceAfterKeywords" : ["case", "catch", "do", "else", "for", "function", "if", "return", "switch", "try", "typeof", "while"],
"requireSpaceAfterLineComment" : true,
"requireSpaceBeforeBinaryOperators" : true,
"requireSpaceBeforeBlockStatements" : true,
"requireSpacesInAnonymousFunctionExpression": {"beforeOpeningRoundBrace": true, "beforeOpeningCurlyBrace": true},
"requireSpacesInConditionalExpression" : true,
"safeContextKeyword" : ["self"],
"validateIndentation" : 4,
"validateJSDoc" : {"checkParamNames": true, "checkRedundantParams": true, "requireParamTypes": true},
"validateLineBreaks" : "LF"
}