-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jscsrc
24 lines (24 loc) · 1.12 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
{
"excludeFiles": ["libs", "node_modules", "build", ".enb"],
"requireCurlyBraces": ["if","for", "while", "do", "try", "catch"],
"disallowSpaceAfterKeywords": ["if", "for", "while", "switch"],
"requireSpaceAfterKeywords": ["else", "while", "catch"],
"disallowSpacesInFunctionExpression": {"beforeOpeningRoundBrace": true},
"disallowSpacesInsideArrayBrackets": true,
"disallowSpacesInsideObjectBrackets": true,
"disallowSpaceAfterObjectKeys": true,
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"disallowSpaceBeforeBinaryOperators": [","],
"requireSpaceBeforeBinaryOperators": [
"+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<=", "&&", "||"
],
"requireSpaceAfterBinaryOperators": [
",", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<=", "&&", "||"
],
"disallowKeywords": ["with"],
"disallowMultipleLineBreaks": true,
"disallowKeywordsOnNewLine": ["else"],
"requireLineFeedAtFileEnd": true,
"safeContextKeyword": ["_this"]
}