forked from naver/egjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jscsrc
48 lines (48 loc) · 2.21 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
43
44
45
46
47
48
{
"disallowEmptyBlocks" : true,
"disallowKeywordsOnNewLine" : ["else"],
"disallowKeywords" : ["with"],
"disallowMixedSpacesAndTabs" : true,
"disallowMultipleLineBreaks" : true,
"disallowMultipleVarDecl" : true,
"disallowMultipleLineStrings" : true,
"disallowNewlineBeforeBlockStatements" : true,
"disallowSpaceAfterObjectKeys" : true,
"disallowSpaceAfterPrefixUnaryOperators" : true,
"disallowSpaceBeforeBinaryOperators" : [","],
"disallowSpaceBeforePostfixUnaryOperators" : true,
"disallowSpacesInCallExpression" : true,
// "disallowSpacesInsideBrackets" : true,
"disallowSpacesInsideParentheses" : true,
"disallowTrailingComma" : true,
"disallowTrailingWhitespace" : true,
"disallowYodaConditions" : true,
"maximumLineLength" : {"value":80,"allExcept":["comments","regex","functionSignature"]},
"requireBlocksOnNewline" : true,
"validateParameterSeparator" : ", ",
"requireCapitalizedConstructors" : true,
"requireCurlyBraces" : ["if","else","for","while","do","try","catch"],
"requireDollarBeforejQueryAssignment" : true,
"requireDotNotation": { "allExcept": [ "snake_case" ] },
// "requireMultipleVarDecl" : "onevar",
"requireOperatorBeforeLineBreak" : true,
"requirePaddingNewLinesAfterUseStrict" : true,
"requirePaddingNewLinesBeforeLineComments" : {"allExcept":"firstAfterCurly"},
"requireParenthesesAroundIIFE" : true,
"requireSemicolons" : true,
"requireSpaceAfterBinaryOperators" : true,
// "requireSpaceAfterObjectKeys" : true,
"requireSpaceAfterKeywords" : ["if","else","for","while","do","switch","return","try","catch"],
"requireSpaceBeforeBinaryOperators" : ["=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","+=","+","-","*","/","%","<<",">>",">>>","&","|","^","&&","||","===","==",">=","<=","<",">","!=","!=="],
"requireSpaceBeforeBlockStatements" : true,
"requireSpaceBeforeKeywords" : [ "else", "else if", "catch" ],
"requireSpaceBeforeObjectValues" : true,
"requireSpaceBetweenArguments" : true,
"requireSpacesInConditionalExpression" : true,
"requireSpacesInForStatement" : true,
"requireSpacesInFunction" : {"beforeOpeningCurlyBrace":true},
"safeContextKeyword" : "self",
"validateLineBreaks" : "LF",
"validateIndentation": "\t",
"validateQuoteMarks" : {"mark":"\"","escape":true}
}