-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jscsrc
35 lines (35 loc) · 1.79 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
{
"disallowEmptyBlocks": true,
"disallowImplicitTypeConversion": ["binary", "boolean", "numeric", "string"],
"disallowKeywordsOnNewLine": ["else", "catch", "finally"],
"disallowMixedSpacesAndTabs": true,
"disallowMultipleLineStrings": true,
"disallowSpaceAfterObjectKeys": true,
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"disallowSpacesInCallExpression": true,
"disallowSpacesInFunction": {"beforeOpeningRoundBrace": true},
"disallowSpacesInsideArrayBrackets": true,
"disallowSpacesInsideObjectBrackets": true,
"disallowSpacesInsideParentheses": true,
"disallowTrailingWhitespace": true,
"disallowYodaConditions": true,
"maximumLineLength": {"value": 79, "allowRegex": true},
"requireCapitalizedConstructors": true,
"requireCommaBeforeLineBreak": true,
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch", "finally"],
"requireDotNotation": true,
"requireLineFeedAtFileEnd": true,
"requireParenthesesAroundIIFE": true,
"requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<=", ",", ":"],
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch", "finally"],
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
"requireSpaceBeforeBlockStatements": true,
"requireSpaceBeforeKeywords": ["else", "catch", "finally"],
"requireSpaceBetweenArguments": true,
"requireSpacesInConditionalExpression": true,
"requireSpacesInFunction": {"beforeOpeningCurlyBrace": true},
"requireTrailingComma": {"ignoreSingleLine": true},
"validateLineBreaks": "LF",
"validateQuoteMarks": {"escape": true, "mark": "'"}
}