-
Notifications
You must be signed in to change notification settings - Fork 12
/
.jscsrc
36 lines (35 loc) · 1.49 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
{
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch", "default"],
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
"requireParenthesesAroundIIFE": true,
"requireMultipleVarDecl": false,
"disallowEmptyBlocks": false,
"disallowSpacesInsideObjectBrackets": false,
"disallowSpacesInsideArrayBrackets": false,
"disallowSpacesInsideParentheses": false,
"disallowQuotedKeysInObjects": "allButReserved",
"requireCommaBeforeLineBreak": true,
"requireOperatorBeforeLineBreak": ["?", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
"requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
"disallowKeywords": ["with"],
"disallowMultipleLineBreaks": true,
"validateQuoteMarks": "'",
"disallowMixedSpacesAndTabs": true,
"disallowTrailingWhitespace": true,
"disallowKeywordsOnNewLine": ["else"],
"requireLineFeedAtFileEnd": false,
"requireCapitalizedConstructors": true,
"requireDotNotation": true,
"validateIndentation": 2,
"maxErrors" : 1000000,
"safeContextKeyword": "self",
"requireSpaceAfterLineComment": { "allExcept": ["="] },
"excludeFiles": [
"node_modules/**",
"bower_components/**",
"docs/**"
]
}