-
Notifications
You must be signed in to change notification settings - Fork 0
/
jscs.json
27 lines (27 loc) · 1.19 KB
/
jscs.json
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
{
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"],
"requireSpaceAfterKeywords": ["if", "for", "while", "do", "switch", "try", "catch", "function", "return"],
"requireSpacesInFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"disallowKeywordsOnNewLine" : ["else"],
"disallowMultipleLineBreaks" : true,
"disallowLeftStickedOperators": ["?", "+", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
"disallowRightStickedOperators": ["?", "+", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-"],
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"requireRightStickedOperators": ["!" ],
"requireLeftStickedOperators": [","],
"requireLineFeedAtFileEnd": true,
"validateLineBreaks": "LF",
"disallowSpaceAfterObjectKeys": true,
"disallowKeywords": [ "with" ],
"validateQuoteMarks": "'",
"disallowMultipleVarDecl": true,
"excludeFiles": [
"node_modules",
"tools",
"test/fixtures"
]
}