-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jscsrc
38 lines (38 loc) · 2.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
30
31
32
33
34
35
36
37
38
{
"requireCamelCaseOrUpperCaseIdentifiers" : "ignoreProperties",
"requireParenthesesAroundIIFE" : true,
"requireCapitalizedConstructors" : true,
"disallowEmptyBlocks" : true,
"requireDotNotation" : true,
"requireCurlyBraces" : ["if", "else", "for", "while", "do", "try", "catch"],
"requireSpaceAfterKeywords" : ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
"disallowSpaceAfterKeywords" : [],
"disallowSpacesInNamedFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"requireMultipleVarDecl": "onevar",
"requireSpacesInAnonymousFunctionExpression": {
"beforeOpeningRoundBrace": true,
"beforeOpeningCurlyBrace": true
},
"disallowSpacesInsideParentheses" : true,
"requireSpacesInsideObjectBrackets" : "allButNested",
"disallowSpaceAfterObjectKeys" : true,
"requireSpaceBeforeBinaryOperators" : ["?", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
"requireSpaceAfterBinaryOperators" : ["?", "+", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<=" ],
"disallowSpaceAfterPrefixUnaryOperators" : ["++", "--", "+", "-", "~", "!"],
"disallowSpaceBeforePostfixUnaryOperators" : ["++", "--"],
"disallowKeywords" : ["with"],
"disallowMultipleLineBreaks" : true,
"validateLineBreaks" : "LF",
"disallowKeywordsOnNewLine" : ["else"],
"requireKeywordsOnNewLine" : [],
"validateIndentation" : 4,
"validateQuoteMarks" : "'",
"disallowMixedSpacesAndTabs" : true,
"disallowTrailingWhitespace" : true,
"requireLineFeedAtFileEnd" : true,
"maximumLineLength" : 120,
"validateJSDoc" : {},
"excludeFiles" : ["node_modules/**", "**/*.conf.*", "public/templates/**", "public/js/**", ".git/*"]
}