|
15 | 15 | },
|
16 | 16 | "rules": {
|
17 | 17 | "arrow-body-style": [2, "as-needed"],
|
18 |
| - "arrow-parens": 0, |
19 |
| - "capitalized-comments": 0, |
20 |
| - "class-methods-use-this": 0, |
21 |
| - "complexity": [2, 20], |
22 |
| - "consistent-return": 0, |
23 |
| - "eol-last": 0, |
24 |
| - "func-call-spacing": [2, "never"], |
25 |
| - "function-paren-newline": 0, |
26 |
| - "for-direction": 2, |
27 |
| - "new-parens": 0, |
28 |
| - "newline-per-chained-call": [2, {"ignoreChainWithDepth": 2}], |
29 |
| - "no-alert": 0, |
30 |
| - "no-await-in-loop": 0, |
31 |
| - "no-catch-shadow": 0, |
32 |
| - "no-class-assign": 0, |
33 |
| - "no-compare-neg-zero": 2, |
34 |
| - "no-console": 0, |
35 |
| - "no-confusing-arrow": [2, {"allowParens": true}], |
36 |
| - "no-extra-parens": 0, |
37 |
| - "no-labels": 0, |
38 |
| - "no-lone-blocks": 0, |
39 |
| - "no-loop-func": 0, |
40 |
| - "no-multi-assign": 0, |
41 |
| - "no-multi-str": 0, |
42 |
| - "no-new": 0, |
43 |
| - "no-process-exit": 0, |
44 |
| - "no-prototype-builtins": 0, |
45 |
| - "no-shadow": 0, |
46 |
| - "no-underscore-dangle": 0, |
47 |
| - "no-unsafe-finally": 2, |
48 |
| - "no-unused-expressions": 0, |
49 |
| - "no-useless-computed-key": 2, |
50 |
| - "no-useless-escape": 2, |
51 |
| - "no-useless-rename": 2, |
52 |
| - "padding-line-between-statements": [ |
53 |
| - 2, |
54 |
| - {"blankLine": "always", "prev": "directive", "next": "*"} |
55 |
| - ], |
56 |
| - "prefer-destructuring": [2, { |
57 |
| - "array": false, |
58 |
| - "object": true |
59 |
| - }], |
60 |
| - "prefer-reflect": 0, |
61 |
| - "quote-props": 0, |
62 |
| - "semi-spacing": 0, |
63 |
| - "semi-style": [2, "last"], |
64 |
| - "space-unary-ops": 0, |
65 |
| - "strict": 0, |
66 |
| - "symbol-description": 2, |
67 |
| - "switch-colon-spacing": 2, |
68 |
| - "array-bracket-spacing": [2, "never"], |
69 | 18 | "array-bracket-newline": [2, "consistent"],
|
| 19 | + "array-bracket-spacing": [2, "never"], |
70 | 20 | "array-callback-return": [2, {"allowImplicit": false}],
|
| 21 | + "arrow-parens": 0, |
71 | 22 | "arrow-spacing": [2, {"before": true, "after": true}],
|
72 | 23 | "brace-style": [2, "1tbs", {"allowSingleLine": true}],
|
73 | 24 | "camelcase": [2, {"properties": "never"}],
|
| 25 | + "capitalized-comments": 0, |
| 26 | + "class-methods-use-this": 0, |
74 | 27 | "comma-dangle": [2, "never"],
|
75 | 28 | "comma-spacing": [2, {"before": false, "after": true}],
|
76 | 29 | "comma-style": [2, "last"],
|
| 30 | + "complexity": [2, 20], |
| 31 | + "consistent-return": 0, |
77 | 32 | "constructor-super": 2,
|
78 | 33 | "curly": [2, "multi-line"],
|
79 | 34 | "dot-notation": [2, {"allowKeywords": true, "allowPattern": "^[a-z]+(_[a-z]+)+$"}],
|
| 35 | + "eol-last": 0, |
80 | 36 | "eqeqeq": [2, "allow-null"],
|
| 37 | + "for-direction": 2, |
| 38 | + "function-paren-newline": 0, |
| 39 | + "func-call-spacing": [2, "never"], |
81 | 40 | "generator-star-spacing": [2, "after"],
|
82 | 41 | "getter-return": 2,
|
83 | 42 | "handle-callback-err": 2,
|
84 | 43 | "indent": [2, 2, {
|
85 | 44 | "SwitchCase": 1,
|
86 | 45 | "ignoredNodes": ["TemplateLiteral"]
|
87 | 46 | }],
|
88 |
| - "key-spacing": [1, {"beforeColon": false, "afterColon": true}], |
| 47 | + "jsx-quotes": [2, "prefer-double"], |
89 | 48 | "keyword-spacing": 2,
|
| 49 | + "key-spacing": [1, {"beforeColon": false, "afterColon": true}], |
90 | 50 | "linebreak-style": [2, "unix"],
|
91 |
| - "line-comment-position": [2, {"position": "above"}], |
92 | 51 | "lines-between-class-members": [2, "always", {"exceptAfterSingleLine": true}],
|
| 52 | + "line-comment-position": [2, {"position": "above"}], |
93 | 53 | "max-len": [2, {"code": 120, "tabWidth": 4}],
|
| 54 | + "newline-per-chained-call": [2, {"ignoreChainWithDepth": 2}], |
94 | 55 | "new-cap": [2, {"newIsCap": true, "capIsNew": false}],
|
| 56 | + "new-parens": 0, |
95 | 57 | "nonblock-statement-body-position": ["error", "beside"],
|
| 58 | + "no-alert": 0, |
96 | 59 | "no-array-constructor": 2,
|
| 60 | + "no-await-in-loop": 0, |
97 | 61 | "no-buffer-constructor": 2,
|
98 | 62 | "no-caller": 2,
|
99 | 63 | "no-case-declarations": 2,
|
| 64 | + "no-catch-shadow": 0, |
| 65 | + "no-class-assign": 0, |
| 66 | + "no-compare-neg-zero": 2, |
100 | 67 | "no-cond-assign": [2, "except-parens"],
|
| 68 | + "no-confusing-arrow": [2, {"allowParens": true}], |
| 69 | + "no-console": 0, |
| 70 | + "no-control-regex": 2, |
101 | 71 | "no-constant-condition": 2,
|
102 | 72 | "no-const-assign": 2,
|
103 |
| - "no-control-regex": 2, |
104 | 73 | "no-debugger": 2,
|
105 | 74 | "no-delete-var": 2,
|
106 | 75 | "no-dupe-args": 2,
|
107 | 76 | "no-dupe-keys": 2,
|
108 | 77 | "no-duplicate-case": 2,
|
109 | 78 | "no-duplicate-imports": [2, {"includeExports": true}],
|
110 |
| - "no-empty-character-class": 2, |
111 | 79 | "no-empty": 2,
|
| 80 | + "no-empty-character-class": 2, |
112 | 81 | "no-empty-pattern": 2,
|
113 |
| - "no-ex-assign": 2, |
| 82 | + "no-eval": 2, |
114 | 83 | "no-extend-native": 2,
|
115 | 84 | "no-extra-bind": 2,
|
116 | 85 | "no-extra-boolean-cast": 2,
|
117 |
| - "no-eval": 2, |
| 86 | + "no-extra-parens": 0, |
| 87 | + "no-ex-assign": 2, |
118 | 88 | "no-fallthrough": 2,
|
119 | 89 | "no-floating-decimal": 2,
|
120 | 90 | "no-func-assign": 2,
|
|
123 | 93 | "no-inner-declarations": 2,
|
124 | 94 | "no-invalid-regexp": 2,
|
125 | 95 | "no-iterator": 2,
|
| 96 | + "no-labels": 0, |
126 | 97 | "no-label-var": 2,
|
| 98 | + "no-lone-blocks": 0, |
| 99 | + "no-loop-func": 0, |
127 | 100 | "no-mixed-operators": 2,
|
128 | 101 | "no-mixed-spaces-and-tabs": 2,
|
129 |
| - "no-multi-spaces": 2, |
130 | 102 | "no-multiple-empty-lines": [2, {"max": 2}],
|
| 103 | + "no-multi-assign": 0, |
| 104 | + "no-multi-spaces": 2, |
| 105 | + "no-multi-str": 0, |
| 106 | + "no-new": 0, |
131 | 107 | "no-new-func": 2,
|
132 | 108 | "no-new-object": 2,
|
133 | 109 | "no-new-wrappers": 2,
|
134 |
| - "no-octal-escape": 2, |
135 |
| - "no-octal": 2, |
136 | 110 | "no-obj-calls": 2,
|
| 111 | + "no-octal": 2, |
| 112 | + "no-octal-escape": 2, |
| 113 | + "no-process-exit": 0, |
137 | 114 | "no-proto": 2,
|
| 115 | + "no-prototype-builtins": 0, |
138 | 116 | "no-redeclare": 2,
|
139 | 117 | "no-regex-spaces": 2,
|
140 | 118 | "no-restricted-syntax": [2, "WithStatement"],
|
141 | 119 | "no-return-assign": 0,
|
142 | 120 | "no-return-await": 0,
|
143 |
| - "no-self-assign": [2, {"props": true}], |
144 | 121 | "no-script-url": 2,
|
| 122 | + "no-self-assign": [2, {"props": true}], |
145 | 123 | "no-sequences": 2,
|
| 124 | + "no-shadow": 0, |
146 | 125 | "no-shadow-restricted-names": 2,
|
147 | 126 | "no-sparse-arrays": 2,
|
148 | 127 | "no-tabs": 2,
|
149 | 128 | "no-template-curly-in-string": 2,
|
150 | 129 | "no-this-before-super": 2,
|
151 | 130 | "no-trailing-spaces": [2, {"skipBlankLines": false}],
|
152 |
| - "no-undef-init": 2, |
153 | 131 | "no-undef": 2,
|
| 132 | + "no-undef-init": 2, |
| 133 | + "no-underscore-dangle": 0, |
| 134 | + "no-unsafe-finally": 2, |
154 | 135 | "no-unsafe-negation": 2,
|
| 136 | + "no-unused-expressions": 0, |
155 | 137 | // Ignoring unused last "next" argument in Express error handlers
|
156 | 138 | "no-unused-vars": [2, {"argsIgnorePattern": "^next$"}],
|
| 139 | + "no-useless-computed-key": 2, |
| 140 | + "no-useless-escape": 2, |
| 141 | + "no-useless-rename": 2, |
157 | 142 | "no-useless-return": 2,
|
158 | 143 | "no-use-before-define": [1, "nofunc"],
|
159 | 144 | "no-var": 2,
|
160 | 145 | "no-with": 2,
|
161 |
| - "one-var": [2, "never"], |
162 |
| - "object-curly-spacing": [2, "always"], |
163 | 146 | "object-curly-newline": [2, {"consistent": true}],
|
| 147 | + "object-curly-spacing": [2, "always"], |
164 | 148 | "object-property-newline": [2, {"allowAllPropertiesOnSameLine": true}],
|
165 | 149 | "object-shorthand": [2, "always"],
|
| 150 | + "one-var": [2, "never"], |
| 151 | + "padding-line-between-statements": [2, |
| 152 | + {"blankLine": "always", "prev": "directive", "next": "*"} |
| 153 | + ], |
166 | 154 | "prefer-const": [2, {"destructuring": "all"}],
|
| 155 | + "prefer-destructuring": [2, { |
| 156 | + "array": false, |
| 157 | + "object": true |
| 158 | + }], |
167 | 159 | "prefer-numeric-literals": 2,
|
168 | 160 | "prefer-promise-reject-errors": [2, {"allowEmptyReject": true}],
|
| 161 | + "prefer-reflect": 0, |
169 | 162 | "prefer-spread": 2,
|
170 | 163 | "quotes": [2, "single", "avoid-escape"],
|
171 |
| - "jsx-quotes": [2, "prefer-double"], |
| 164 | + "quote-props": 0, |
172 | 165 | "require-await": 0,
|
173 | 166 | "require-yield": 2,
|
174 | 167 | "rest-spread-spacing": [2, "never"],
|
175 | 168 | "semi": [2, "always", {"omitLastInOneLineBlock": true}],
|
176 |
| - "space-before-function-paren": [2, {"anonymous": "always", "named": "never"}], |
177 |
| - "space-before-blocks": [2, "always"], |
| 169 | + "semi-spacing": 0, |
| 170 | + "semi-style": [2, "last"], |
178 | 171 | // Setting "error" won't allow to comment blocks of code with IDE shortcut
|
179 | 172 | "spaced-comment": 0,
|
| 173 | + "space-before-blocks": [2, "always"], |
| 174 | + "space-before-function-paren": [2, {"anonymous": "always", "named": "never"}], |
180 | 175 | "space-infix-ops": 2,
|
| 176 | + "space-unary-ops": 0, |
| 177 | + "strict": 0, |
| 178 | + "symbol-description": 2, |
| 179 | + "switch-colon-spacing": 2, |
181 | 180 | "template-tag-spacing": [2, "never"],
|
182 |
| - "yoda": [2, "never"], |
183 |
| - "use-isnan": 2, |
184 | 181 | "unicode-bom": 0,
|
| 182 | + "use-isnan": 2, |
185 | 183 | "valid-typeof": [2, {"requireStringLiterals": true}],
|
186 |
| - "wrap-iife": [2, "inside"] |
| 184 | + "wrap-iife": [2, "inside"], |
| 185 | + "yoda": [2, "never"] |
187 | 186 | }
|
188 | 187 | }
|
0 commit comments