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