-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.jscsrc
46 lines (46 loc) · 2.59 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
{
"requireCurlyBraces" : true,
"requireSpaceAfterKeywords" : true,
"requireSpaceBeforeBlockStatements" : true,
"requireParenthesesAroundIIFE" : true,
"requireSpacesInConditionalExpression" : true,
"requireSpacesInFunctionExpression" : {
"beforeOpeningCurlyBrace": true
},
"requireSpacesInAnonymousFunctionExpression" : {
"beforeOpeningCurlyBrace": true
},
"requireSpacesInNamedFunctionExpression" : {
"beforeOpeningCurlyBrace": true
},
"requireSpacesInFunctionDeclaration" : {
"beforeOpeningCurlyBrace": true
},
"disallowSpacesInCallExpression" : true,
"requireMultipleVarDecl" : true,
"requireBlocksOnNewline" : true,
"disallowEmptyBlocks" : true,
"disallowSpacesInsideObjectBrackets" : true,
"disallowSpacesInsideArrayBrackets" : true,
"disallowSpacesInsideParentheses" : true,
"requireCommaBeforeLineBreak" : true,
"requireOperatorBeforeLineBreak" : true,
"disallowSpaceAfterPrefixUnaryOperators" : true,
"disallowSpaceBeforePostfixUnaryOperators" : true,
"requireSpaceBeforeBinaryOperators" : true,
"requireSpaceAfterBinaryOperators" : true,
"requireCamelCaseOrUpperCaseIdentifiers" : true,
"disallowKeywords" : ["with"],
"disallowMultipleLineStrings" : true,
"disallowMultipleLineBreaks" : true,
"disallowMixedSpacesAndTabs" : true,
"disallowTrailingWhitespace" : true,
"disallowTrailingComma" : true,
"disallowKeywordsOnNewLine" : ["else", "catch", "finally"],
"requireCapitalizedConstructors" : true,
"requireDotNotation" : true,
"disallowNewlineBeforeBlockStatements" : true,
"validateIndentation" : 4,
"validateParameterSeparator" : ", ",
"safeContextKeyword" : ["that", "self"]
}