-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.jscsrc
45 lines (45 loc) · 2.34 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
{
"disallowAnonymousFunctions": true,
"disallowKeywordsOnNewLine": ["else"],
"disallowMixedSpacesAndTabs": true,
"disallowMultipleLineBreaks": true,
"disallowMultipleSpaces": {"allowEOLComments": true},
"disallowNewlineBeforeBlockStatements": true,
"disallowOperatorBeforeLineBreak": ["+", "-", "/", "*", "?", ":"],
"disallowSpaceAfterObjectKeys": true,
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
"disallowSpaceBeforeComma": {"allExcept": ["sparseArrays"]},
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"disallowSpaceBeforeSemicolon": { "allExcept": [ "(" ] },
"disallowSpacesInCallExpression": true,
"disallowSpacesInFunction": { "beforeOpeningRoundBrace": true },
"disallowSpacesInsideParentheses": true,
"disallowTabs": true,
"maximumLineLength": { "value": 120, "allExcept": ["comments"] },
"maximumNumberOfLines": 250,
"requireAlignedMultilineParams": "firstParam",
"requireArrayDestructuring": true,
"requireObjectDestructuring": true,
"requireBlocksOnNewline": 1,
"requireCamelCaseOrUpperCaseIdentifiers": true,
"requireCapitalizedConstructorsNew": { "allExcept": ["Symbol", "Boolean", "RegExp"] },
"requireCapitalizedConstructors": true,
"requireCommaBeforeLineBreak": true,
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"],
"requireDollarBeforejQueryAssignment": true,
"requireImportAlphabetized": true,
"requireLineBreakAfterVariableAssignment": true,
"requireLineFeedAtFileEnd": true,
"requireNumericLiterals": true,
"requireObjectKeysOnNewLine": { "allExcept": ["sameLine"] },
"requirePaddingNewLinesAfterBlocks": true,
"requirePaddingNewLinesAfterUseStrict": true,
"requirePaddingNewLinesBeforeExport": true,
"requirePaddingNewLinesBeforeLineComments": { "allExcept": "firstAfterCurly" },
"requireSemicolons": true,
"requireSpaceAfterBinaryOperators": ["=", ",", "+", "-", "/", "*", "==", "===", "!=", "!=="],
"requireSpaceAfterComma": true,
"requireSpaceAfterKeywords": ["do", "for", "if", "else", "switch", "case", "try", "catch", "void", "while", "with", "return", "typeof", "function"],
"requireSpaceAfterLineComment": true,
"requireSpacesInFunction": { "beforeOpeningCurlyBrace": true }
}