UNPKG

1.76 kBPlain TextView Raw
1{
2 "requireCurlyBraces": [
3 "for",
4 "while",
5 "do",
6 "try",
7 "catch"
8 ],
9 "requireOperatorBeforeLineBreak": true,
10 "requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties",
11 "maximumLineLength": {
12 "value": 80,
13 "allowComments": true,
14 "allowRegex": true
15 },
16 "validateIndentation": 2,
17 "validateQuoteMarks": "'",
18
19 "disallowMultipleLineStrings": true,
20 "disallowMixedSpacesAndTabs": true,
21 "disallowTrailingWhitespace": true,
22 "disallowSpaceAfterPrefixUnaryOperators": true,
23 "disallowMultipleVarDecl": true,
24
25 "requireSpaceAfterKeywords": [
26 "if",
27 "else",
28 "for",
29 "while",
30 "do",
31 "switch",
32 "return",
33 "try",
34 "catch"
35 ],
36 "requireSpaceBeforeBinaryOperators": [
37 "=", "+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=",
38 "&=", "|=", "^=", "+=",
39
40 "+", "-", "*", "/", "%", "<<", ">>", ">>>", "&",
41 "|", "^", "&&", "||", "===", "==", ">=",
42 "<=", "<", ">", "!=", "!=="
43 ],
44 "requireSpaceAfterBinaryOperators": true,
45 "requireSpacesInConditionalExpression": true,
46 "requireSpaceBeforeBlockStatements": true,
47 "requireLineFeedAtFileEnd": true,
48 "requireSpacesInFunctionExpression": {
49 "beforeOpeningCurlyBrace": true
50 },
51 "disallowSpacesInAnonymousFunctionExpression": {
52 "beforeOpeningRoundBrace": true
53 },
54 "disallowSpacesInsideObjectBrackets": "all",
55 "disallowSpacesInsideArrayBrackets": "all",
56 "disallowSpacesInsideParentheses": true,
57
58
59 "validateJSDoc": {
60 "checkParamNames": true,
61 "requireParamTypes": true
62 },
63
64 "disallowMultipleLineBreaks": true,
65 "disallowNewlineBeforeBlockStatements": true
66}