-
Notifications
You must be signed in to change notification settings - Fork 2
/
.jscsrc
29 lines (29 loc) · 1.17 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
{
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
"requireSpaceBeforeBlockStatements": true,
"requireParenthesesAroundIIFE": true,
"requireSpacesInFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"disallowSpacesInFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"disallowMultipleVarDecl": true,
"requireBlocksOnNewline": true,
"disallowSpacesInsideObjectBrackets": true,
"disallowSpacesInsideArrayBrackets": true,
"disallowSpacesInsideParentheses": true,
"disallowQuotedKeysInObjects": true,
"disallowSpaceAfterObjectKeys": true,
"requireCommaBeforeLineBreak": true,
"requireSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "~"],
"requireSpaceBeforeBinaryOperators": ["=", "+", "-", "/", "*", "==", "===", "!=", "!=="],
"disallowSpaceBeforeBinaryOperators": [","],
"requireSpaceAfterBinaryOperators": true,
"disallowKeywords": ["with"],
"validateLineBreaks": "LF",
"validateIndentation": 4,
"disallowKeywordsOnNewLine": ["else"],
"disallowYodaConditions": true,
"disallowSpaceAfterPrefixUnaryOperators": true
}