Skip to content

Commit 85a1923

Browse files
committed
Sort rules in ESLint config alphabetically
1 parent 74dd573 commit 85a1923

File tree

1 file changed

+69
-70
lines changed

1 file changed

+69
-70
lines changed

.eslintrc.json

Lines changed: 69 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -15,106 +15,76 @@
1515
},
1616
"rules": {
1717
"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"],
6918
"array-bracket-newline": [2, "consistent"],
19+
"array-bracket-spacing": [2, "never"],
7020
"array-callback-return": [2, {"allowImplicit": false}],
21+
"arrow-parens": 0,
7122
"arrow-spacing": [2, {"before": true, "after": true}],
7223
"brace-style": [2, "1tbs", {"allowSingleLine": true}],
7324
"camelcase": [2, {"properties": "never"}],
25+
"capitalized-comments": 0,
26+
"class-methods-use-this": 0,
7427
"comma-dangle": [2, "never"],
7528
"comma-spacing": [2, {"before": false, "after": true}],
7629
"comma-style": [2, "last"],
30+
"complexity": [2, 20],
31+
"consistent-return": 0,
7732
"constructor-super": 2,
7833
"curly": [2, "multi-line"],
7934
"dot-notation": [2, {"allowKeywords": true, "allowPattern": "^[a-z]+(_[a-z]+)+$"}],
35+
"eol-last": 0,
8036
"eqeqeq": [2, "allow-null"],
37+
"for-direction": 2,
38+
"function-paren-newline": 0,
39+
"func-call-spacing": [2, "never"],
8140
"generator-star-spacing": [2, "after"],
8241
"getter-return": 2,
8342
"handle-callback-err": 2,
8443
"indent": [2, 2, {
8544
"SwitchCase": 1,
8645
"ignoredNodes": ["TemplateLiteral"]
8746
}],
88-
"key-spacing": [1, {"beforeColon": false, "afterColon": true}],
47+
"jsx-quotes": [2, "prefer-double"],
8948
"keyword-spacing": 2,
49+
"key-spacing": [1, {"beforeColon": false, "afterColon": true}],
9050
"linebreak-style": [2, "unix"],
91-
"line-comment-position": [2, {"position": "above"}],
9251
"lines-between-class-members": [2, "always", {"exceptAfterSingleLine": true}],
52+
"line-comment-position": [2, {"position": "above"}],
9353
"max-len": [2, {"code": 120, "tabWidth": 4}],
54+
"newline-per-chained-call": [2, {"ignoreChainWithDepth": 2}],
9455
"new-cap": [2, {"newIsCap": true, "capIsNew": false}],
56+
"new-parens": 0,
9557
"nonblock-statement-body-position": ["error", "beside"],
58+
"no-alert": 0,
9659
"no-array-constructor": 2,
60+
"no-await-in-loop": 0,
9761
"no-buffer-constructor": 2,
9862
"no-caller": 2,
9963
"no-case-declarations": 2,
64+
"no-catch-shadow": 0,
65+
"no-class-assign": 0,
66+
"no-compare-neg-zero": 2,
10067
"no-cond-assign": [2, "except-parens"],
68+
"no-confusing-arrow": [2, {"allowParens": true}],
69+
"no-console": 0,
70+
"no-control-regex": 2,
10171
"no-constant-condition": 2,
10272
"no-const-assign": 2,
103-
"no-control-regex": 2,
10473
"no-debugger": 2,
10574
"no-delete-var": 2,
10675
"no-dupe-args": 2,
10776
"no-dupe-keys": 2,
10877
"no-duplicate-case": 2,
10978
"no-duplicate-imports": [2, {"includeExports": true}],
110-
"no-empty-character-class": 2,
11179
"no-empty": 2,
80+
"no-empty-character-class": 2,
11281
"no-empty-pattern": 2,
113-
"no-ex-assign": 2,
82+
"no-eval": 2,
11483
"no-extend-native": 2,
11584
"no-extra-bind": 2,
11685
"no-extra-boolean-cast": 2,
117-
"no-eval": 2,
86+
"no-extra-parens": 0,
87+
"no-ex-assign": 2,
11888
"no-fallthrough": 2,
11989
"no-floating-decimal": 2,
12090
"no-func-assign": 2,
@@ -123,66 +93,95 @@
12393
"no-inner-declarations": 2,
12494
"no-invalid-regexp": 2,
12595
"no-iterator": 2,
96+
"no-labels": 0,
12697
"no-label-var": 2,
98+
"no-lone-blocks": 0,
99+
"no-loop-func": 0,
127100
"no-mixed-operators": 2,
128101
"no-mixed-spaces-and-tabs": 2,
129-
"no-multi-spaces": 2,
130102
"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,
131107
"no-new-func": 2,
132108
"no-new-object": 2,
133109
"no-new-wrappers": 2,
134-
"no-octal-escape": 2,
135-
"no-octal": 2,
136110
"no-obj-calls": 2,
111+
"no-octal": 2,
112+
"no-octal-escape": 2,
113+
"no-process-exit": 0,
137114
"no-proto": 2,
115+
"no-prototype-builtins": 0,
138116
"no-redeclare": 2,
139117
"no-regex-spaces": 2,
140118
"no-restricted-syntax": [2, "WithStatement"],
141119
"no-return-assign": 0,
142120
"no-return-await": 0,
143-
"no-self-assign": [2, {"props": true}],
144121
"no-script-url": 2,
122+
"no-self-assign": [2, {"props": true}],
145123
"no-sequences": 2,
124+
"no-shadow": 0,
146125
"no-shadow-restricted-names": 2,
147126
"no-sparse-arrays": 2,
148127
"no-tabs": 2,
149128
"no-template-curly-in-string": 2,
150129
"no-this-before-super": 2,
151130
"no-trailing-spaces": [2, {"skipBlankLines": false}],
152-
"no-undef-init": 2,
153131
"no-undef": 2,
132+
"no-undef-init": 2,
133+
"no-underscore-dangle": 0,
134+
"no-unsafe-finally": 2,
154135
"no-unsafe-negation": 2,
136+
"no-unused-expressions": 0,
155137
// Ignoring unused last "next" argument in Express error handlers
156138
"no-unused-vars": [2, {"argsIgnorePattern": "^next$"}],
139+
"no-useless-computed-key": 2,
140+
"no-useless-escape": 2,
141+
"no-useless-rename": 2,
157142
"no-useless-return": 2,
158143
"no-use-before-define": [1, "nofunc"],
159144
"no-var": 2,
160145
"no-with": 2,
161-
"one-var": [2, "never"],
162-
"object-curly-spacing": [2, "always"],
163146
"object-curly-newline": [2, {"consistent": true}],
147+
"object-curly-spacing": [2, "always"],
164148
"object-property-newline": [2, {"allowAllPropertiesOnSameLine": true}],
165149
"object-shorthand": [2, "always"],
150+
"one-var": [2, "never"],
151+
"padding-line-between-statements": [2,
152+
{"blankLine": "always", "prev": "directive", "next": "*"}
153+
],
166154
"prefer-const": [2, {"destructuring": "all"}],
155+
"prefer-destructuring": [2, {
156+
"array": false,
157+
"object": true
158+
}],
167159
"prefer-numeric-literals": 2,
168160
"prefer-promise-reject-errors": [2, {"allowEmptyReject": true}],
161+
"prefer-reflect": 0,
169162
"prefer-spread": 2,
170163
"quotes": [2, "single", "avoid-escape"],
171-
"jsx-quotes": [2, "prefer-double"],
164+
"quote-props": 0,
172165
"require-await": 0,
173166
"require-yield": 2,
174167
"rest-spread-spacing": [2, "never"],
175168
"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"],
178171
// Setting "error" won't allow to comment blocks of code with IDE shortcut
179172
"spaced-comment": 0,
173+
"space-before-blocks": [2, "always"],
174+
"space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
180175
"space-infix-ops": 2,
176+
"space-unary-ops": 0,
177+
"strict": 0,
178+
"symbol-description": 2,
179+
"switch-colon-spacing": 2,
181180
"template-tag-spacing": [2, "never"],
182-
"yoda": [2, "never"],
183-
"use-isnan": 2,
184181
"unicode-bom": 0,
182+
"use-isnan": 2,
185183
"valid-typeof": [2, {"requireStringLiterals": true}],
186-
"wrap-iife": [2, "inside"]
184+
"wrap-iife": [2, "inside"],
185+
"yoda": [2, "never"]
187186
}
188187
}

0 commit comments

Comments
 (0)