-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jscsrc
38 lines (38 loc) · 1.54 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
{
"disallowMixedSpacesAndTabs": true,
"validateIndentation": 4,
"disallowSpacesInFunctionDeclaration": {
"beforeOpeningRoundBrace": true
},
"requireSpacesInFunctionDeclaration": {
"beforeOpeningCurlyBrace": true
},
"requireSpacesInAnonymousFunctionExpression": {
"beforeOpeningRoundBrace": true,
"beforeOpeningCurlyBrace": true
},
"disallowSpacesInCallExpression": true,
"requireSpaceAfterKeywords": ["if","else","for","while","do","switch","try","catch","finally"],
"requireSpaceAfterBinaryOperators": true,
"requireSpaceBeforeBinaryOperators": true,
"requireSpaceBeforeBlockStatements": true,
"requireSpaceBeforeKeywords": ["else","while","catch","finally"],
"disallowSpacesInsideParentheses": true,
"requireSpacesInConditionalExpression": true,
"requireSpaceBetweenArguments": true,
"disallowSpaceAfterObjectKeys": true,
"requireSpaceBeforeObjectValues": true,
"disallowMultipleLineBreaks": true, /* Current style allows for 2 blank lines. */
// "disallowMultipleSpaces": true,
"requireCurlyBraces": ["if","else","for","while","do"],
"disallowNewlineBeforeBlockStatements": true,
/** No enfocement in current style. */
"requireSpacesInForStatement": true,
"disallowMultipleLineStrings": true,
"requireSemicolons": true,
/** From JSHint */
"validateQuoteMarks": "'", /* quotmark */
"maximumLineLength": 180, /* maxlen */
// "disallowEmptyBlocks": true, /* noempty */
"requireParenthesesAroundIIFE": true /* immed */
}