-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.jscsrc
63 lines (63 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"fileExtensions": [".js", "jscs", ".json"],
"excludeFiles": ["assets/js/libs/**"],
"requireParenthesesAroundIIFE": true,
"validateLineBreaks": "LF",
"validateIndentation": 4,
"disallowSpaceAfterPrefixUnaryOperators": true,
"disallowSpaceBeforePostfixUnaryOperators": true,
"requireSpaceBeforeBinaryOperators": true,
"requireSpaceAfterBinaryOperators": true,
"disallowDanglingUnderscores": true,
"disallowSpaceAfterObjectKeys": true,
"requireSpaceBeforeObjectValues": true,
"requireCommaBeforeLineBreak": true,
"requireSpaceAfterKeywords": true,
"requireSpaceBeforeBlockStatements": true,
"requireParenthesesAroundIIFE": true,
"requireSpacesInConditionalExpression": true,
"requireCurlyBraces": true,
"requireBlocksOnNewline": true,
"disallowSpacesInsideObjectBrackets": true,
"disallowSpacesInsideArrayBrackets": true,
"disallowSpacesInsideParentheses": true,
"disallowMultipleLineStrings": true,
"disallowMultipleLineBreaks": true,
"disallowMixedSpacesAndTabs": true,
"disallowTrailingWhitespace": true,
"disallowTrailingComma": true,
"disallowKeywordsOnNewLine": ["else"],
"disallowNewlineBeforeBlockStatements": true,
"validateQuoteMarks": "'",
"validateParameterSeparator": ", ",
"requireLineFeedAtFileEnd": true,
"requireCapitalizedConstructors": true,
"requireSpaceAfterLineComment": true,
"disallowYodaConditions": true,
"safeContextKeyword": ["self"],
"disallowEmptyBlocks": true,
"requireCamelCaseOrUpperCaseIdentifiers": true,
"maximumLineLength": 120,
"disallowMultipleVarDecl": true,
"disallowSpacesInCallExpression": true,
"requireSpacesInFunctionExpression": {
"beforeOpeningRoundBrace": true,
"beforeOpeningCurlyBrace": true
},
"requireSpacesInAnonymousFunctionExpression": {
"beforeOpeningRoundBrace": true,
"beforeOpeningCurlyBrace": true
},
"requireSpacesInNamedFunctionExpression": {
"beforeOpeningRoundBrace": true,
"beforeOpeningCurlyBrace": true
},
"requireSpacesInFunctionDeclaration": {
"beforeOpeningRoundBrace": true,
"beforeOpeningCurlyBrace": true
},
"requireSpacesInFunction": {
"beforeOpeningRoundBrace": true,
"beforeOpeningCurlyBrace": true
}
}