1 | {
|
2 | "excludeFiles": [
|
3 | "node_modules/*",
|
4 | "coverage/*",
|
5 | "reports/*"
|
6 | ],
|
7 | "fileExtensions": [
|
8 | ".js"
|
9 | ],
|
10 | "requireCurlyBraces": [
|
11 | "if",
|
12 | "else",
|
13 | "for",
|
14 | "while",
|
15 | "do",
|
16 | "try",
|
17 | "catch"
|
18 | ],
|
19 | "requireSpaceAfterKeywords": [
|
20 | "if",
|
21 | "else",
|
22 | "for",
|
23 | "while",
|
24 | "do",
|
25 | "switch",
|
26 | "case",
|
27 | "return",
|
28 | "try",
|
29 | "catch",
|
30 | "function",
|
31 | "typeof"
|
32 | ],
|
33 | "requireSpaceBeforeBlockStatements": true,
|
34 | "requireParenthesesAroundIIFE": true,
|
35 | "requireSpacesInConditionalExpression": true,
|
36 | "disallowSpacesInNamedFunctionExpression": {
|
37 | "beforeOpeningRoundBrace": true
|
38 | },
|
39 | "disallowSpacesInFunctionDeclaration": {
|
40 | "beforeOpeningRoundBrace": true
|
41 | },
|
42 | "requireBlocksOnNewline": 1,
|
43 | "disallowEmptyBlocks": true,
|
44 | "disallowSpacesInsideArrayBrackets": true,
|
45 | "disallowSpacesInsideParentheses": true,
|
46 | "disallowQuotedKeysInObjects": true,
|
47 | "disallowDanglingUnderscores": true,
|
48 | "disallowSpaceAfterObjectKeys": true,
|
49 | "requireCommaBeforeLineBreak": true,
|
50 | "disallowSpaceAfterPrefixUnaryOperators": true,
|
51 | "disallowSpaceBeforePostfixUnaryOperators": true,
|
52 | "disallowSpaceBeforeBinaryOperators": [
|
53 | ","
|
54 | ],
|
55 | "requireSpaceBeforeBinaryOperators": true,
|
56 | "requireSpaceAfterBinaryOperators": true,
|
57 | "requireCamelCaseOrUpperCaseIdentifiers": true,
|
58 | "disallowKeywords": [ "with" ],
|
59 | "disallowMultipleLineBreaks": true,
|
60 | "validateQuoteMarks": "'",
|
61 | "validateIndentation": 4,
|
62 | "disallowMixedSpacesAndTabs": true,
|
63 | "disallowTrailingWhitespace": true,
|
64 | "disallowTrailingComma": true,
|
65 | "disallowKeywordsOnNewLine": [ "else" ],
|
66 | "requireCapitalizedConstructors": true,
|
67 | "requireDotNotation": true,
|
68 | "disallowYodaConditions": true,
|
69 | "disallowNewlineBeforeBlockStatements": true
|
70 | }
|