-
Notifications
You must be signed in to change notification settings - Fork 4
/
.jscsrc
57 lines (57 loc) · 2.38 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties",
"requireCurlyBraces": [ "if", "else", "for", "while", "do", "try", "catch" ],
"disallowEmptyBlocks": true,
"requireFunctionDeclarations": true,
"requireKeywordsOnNewLine": [ "else", "while", "do", "try", "catch", "finally", "case", "default" ],
"requireLineBreakAfterVariableAssignment": true,
"requireLineFeedAtFileEnd": true,
"disallowMixedSpacesAndTabs": true,
"disallowMultipleLineBreaks": true,
"disallowMultipleSpaces": true,
"disallowMultipleVarDecl": true,
"disallowNewlineBeforeBlockStatements": true,
"requireOperatorBeforeLineBreak": [ "?", "=", "+", "-", "/", "*", "==", "===", "!=", "!==", ">", ">=", "<", "<=" ],
"requirePaddingNewlinesBeforeKeywords": [ "do", "for", "if", "switch", "case", "try", "void", "while", "with", "return", "typeof", "function" ],
"disallowPaddingNewlinesInBlocks": true,
"requireSemicolons": true,
"requireSpaceAfterBinaryOperators": [ "+", "-", "/", "*", "=", "==", "===", "!=", "!==" ],
"disallowSpaceAfterObjectKeys": true,
"requireSpaceBeforeBinaryOperators": [ "+", "-", "/", "*", "=", "==", "===", "!=", "!==" ],
"requireSpaceBeforeBlockStatements": true,
"requireSpaceBeforeObjectValues": true,
"disallowSpaceBeforePostfixUnaryOperators": true,
"requireSpaceBetweenArguments": true,
"requireSpacesInAnonymousFunctionExpression": {
"beforeOpeningRoundBrace": true,
"beforeOpeningCurlyBrace": true
},
"disallowSpacesInCallExpression": true,
"requireSpacesInConditionalExpression": true,
"requireSpacesInForStatement": true,
"disallowSpacesInFunctionDeclaration": {
"beforeOpeningRoundBrace": true
},
"disallowSpacesInsideArrayBrackets": "all",
"requireSpacesInsideObjectBrackets": {
"allExcept": [ "}" ]
},
"disallowSpacesInsideParentheses": true,
"disallowTrailingComma": true,
"disallowTrailingWhitespace": true,
"validateAlignedFunctionParameters": {
"lineBreakAfterOpeningBraces": true,
"lineBreakBeforeClosingBraces": true
},
"validateIndentation": 4,
"validateNewlineAfterArrayElements": {
"maximum": 3
},
"validateParameterSeparator": ", ",
"validateQuoteMarks": "'",
"maximumLineLength": {
"value": 100,
"allowUrlComments": true,
"allowRegex": true
}
}