@pob/eslint-config 56.1.0 → 57.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,350 +1,350 @@
1
- "use strict";
1
+ import eslintPluginUnicorn from "eslint-plugin-unicorn";
2
2
 
3
- module.exports = {
4
- plugins: ["unicorn"],
5
- rules: {
6
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/catch-error-name.md
7
- "unicorn/catch-error-name": "error",
3
+ export default [
4
+ {
5
+ name: "@pob/eslint-config/unicorn",
6
+ plugins: { unicorn: eslintPluginUnicorn },
7
+ rules: {
8
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/catch-error-name.md
9
+ "unicorn/catch-error-name": "error",
8
10
 
9
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/explicit-length-check.md
10
- "unicorn/explicit-length-check": "error",
11
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/explicit-length-check.md
12
+ "unicorn/explicit-length-check": "error",
11
13
 
12
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/filename-case.md
13
- "unicorn/filename-case": "off",
14
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/filename-case.md
15
+ "unicorn/filename-case": "off",
14
16
 
15
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-abusive-eslint-disable.md
16
- "unicorn/no-abusive-eslint-disable": "error",
17
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-abusive-eslint-disable.md
18
+ "unicorn/no-abusive-eslint-disable": "error",
17
19
 
18
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-process-exit.md
19
- "unicorn/no-process-exit": "error",
20
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-process-exit.md
21
+ "unicorn/no-process-exit": "error",
20
22
 
21
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/throw-new-error.md
22
- "unicorn/throw-new-error": "error",
23
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/throw-new-error.md
24
+ "unicorn/throw-new-error": "error",
23
25
 
24
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/number-literal-case.md
25
- "unicorn/number-literal-case": "error",
26
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/number-literal-case.md
27
+ "unicorn/number-literal-case": "error",
26
28
 
27
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/escape-case.md
28
- "unicorn/escape-case": "error",
29
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/escape-case.md
30
+ "unicorn/escape-case": "error",
29
31
 
30
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-instanceof-array.md
31
- "unicorn/no-instanceof-array": "error",
32
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-instanceof-array.md
33
+ "unicorn/no-instanceof-array": "error",
32
34
 
33
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-new-buffer.md
34
- "unicorn/no-new-buffer": "error",
35
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-new-buffer.md
36
+ "unicorn/no-new-buffer": "error",
35
37
 
36
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-hex-escape.md
37
- "unicorn/no-hex-escape": "error",
38
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-hex-escape.md
39
+ "unicorn/no-hex-escape": "error",
38
40
 
39
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/custom-error-definition.md
40
- "unicorn/custom-error-definition": "error",
41
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/custom-error-definition.md
42
+ "unicorn/custom-error-definition": "error",
41
43
 
42
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-string-starts-ends-with.md
43
- "unicorn/prefer-string-starts-ends-with": "error",
44
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-string-starts-ends-with.md
45
+ "unicorn/prefer-string-starts-ends-with": "error",
44
46
 
45
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-type-error.md
46
- "unicorn/prefer-type-error": "error",
47
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-type-error.md
48
+ "unicorn/prefer-type-error": "error",
47
49
 
48
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-callback-reference.md
49
- "unicorn/no-array-callback-reference": "off",
50
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-callback-reference.md
51
+ "unicorn/no-array-callback-reference": "off",
50
52
 
51
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/import-index.md
52
- "unicorn/import-index": "error",
53
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/import-index.md
54
+ "unicorn/import-index": "error",
53
55
 
54
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/new-for-builtins.md
55
- "unicorn/new-for-builtins": "error",
56
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/new-for-builtins.md
57
+ "unicorn/new-for-builtins": "error",
56
58
 
57
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/better-regex.md
58
- "unicorn/better-regex": "error",
59
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/better-regex.md
60
+ "unicorn/better-regex": "error",
59
61
 
60
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-spread.md
61
- "unicorn/prefer-spread": "error",
62
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-spread.md
63
+ "unicorn/prefer-spread": "error",
62
64
 
63
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/error-message.md
64
- "unicorn/error-message": "error",
65
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/error-message.md
66
+ "unicorn/error-message": "error",
65
67
 
66
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-add-event-listener.md
67
- "unicorn/prefer-add-event-listener": "error",
68
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-add-event-listener.md
69
+ "unicorn/prefer-add-event-listener": "error",
68
70
 
69
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-query-selector.md
70
- "unicorn/prefer-query-selector": "off",
71
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-query-selector.md
72
+ "unicorn/prefer-query-selector": "off",
71
73
 
72
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-dom-node-append.md
73
- "unicorn/prefer-dom-node-append": "error",
74
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-dom-node-append.md
75
+ "unicorn/prefer-dom-node-append": "error",
74
76
 
75
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-dom-node-remove.md
76
- "unicorn/prefer-dom-node-remove": "error",
77
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-dom-node-remove.md
78
+ "unicorn/prefer-dom-node-remove": "error",
77
79
 
78
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unused-properties.md
79
- "unicorn/no-unused-properties": "off",
80
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unused-properties.md
81
+ "unicorn/no-unused-properties": "off",
80
82
 
81
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unreadable-array-destructuring.md
82
- "unicorn/no-unreadable-array-destructuring": "off",
83
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unreadable-array-destructuring.md
84
+ "unicorn/no-unreadable-array-destructuring": "off",
83
85
 
84
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-console-spaces.md
85
- "unicorn/no-console-spaces": "off",
86
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-console-spaces.md
87
+ "unicorn/no-console-spaces": "off",
86
88
 
87
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prevent-abbreviations.md
88
- "unicorn/prevent-abbreviations": "off",
89
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prevent-abbreviations.md
90
+ "unicorn/prevent-abbreviations": "off",
89
91
 
90
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-for-loop.md
91
- "unicorn/no-for-loop": "off",
92
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-for-loop.md
93
+ "unicorn/no-for-loop": "off",
92
94
 
93
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-zero-fractions.md
94
- "unicorn/no-zero-fractions": "off",
95
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-zero-fractions.md
96
+ "unicorn/no-zero-fractions": "off",
95
97
 
96
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-includes.md
97
- "unicorn/prefer-includes": "error",
98
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-includes.md
99
+ "unicorn/prefer-includes": "error",
98
100
 
99
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-dom-node-text-content.md
100
- "unicorn/prefer-dom-node-text-content": "error",
101
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-dom-node-text-content.md
102
+ "unicorn/prefer-dom-node-text-content": "error",
101
103
 
102
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-keyboard-event-key.md
103
- "unicorn/prefer-keyboard-event-key": "off",
104
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-keyboard-event-key.md
105
+ "unicorn/prefer-keyboard-event-key": "off",
104
106
 
105
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-flat-map.md
106
- "unicorn/prefer-array-flat-map": "error",
107
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-flat-map.md
108
+ "unicorn/prefer-array-flat-map": "error",
107
109
 
108
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-keyword-prefix.md
109
- "unicorn/no-keyword-prefix": "off",
110
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-keyword-prefix.md
111
+ "unicorn/no-keyword-prefix": "off",
110
112
 
111
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/expiring-todo-comments.md
112
- "unicorn/expiring-todo-comments": [
113
- "error",
114
- {
115
- allowWarningComments: true,
116
- },
117
- ],
113
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/expiring-todo-comments.md
114
+ "unicorn/expiring-todo-comments": [
115
+ "error",
116
+ {
117
+ allowWarningComments: true,
118
+ },
119
+ ],
118
120
 
119
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-nested-ternary.md
120
- "no-nested-ternary": "off",
121
- "unicorn/no-nested-ternary": "error",
121
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-nested-ternary.md
122
+ "no-nested-ternary": "off",
123
+ "unicorn/no-nested-ternary": "error",
122
124
 
123
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-function-scoping.md
124
- "unicorn/consistent-function-scoping": "off",
125
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-function-scoping.md
126
+ "unicorn/consistent-function-scoping": "off",
125
127
 
126
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-reflect-apply.md
127
- "unicorn/prefer-reflect-apply": "off",
128
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-reflect-apply.md
129
+ "unicorn/prefer-reflect-apply": "off",
128
130
 
129
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-dom-node-dataset.md
130
- "unicorn/prefer-dom-node-dataset": "error",
131
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-dom-node-dataset.md
132
+ "unicorn/prefer-dom-node-dataset": "error",
131
133
 
132
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-string-slice.md
133
- "unicorn/prefer-string-slice": "error",
134
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-string-slice.md
135
+ "unicorn/prefer-string-slice": "error",
134
136
 
135
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-string-trim-start-end.md
136
- "unicorn/prefer-string-trim-start-end": "error",
137
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-string-trim-start-end.md
138
+ "unicorn/prefer-string-trim-start-end": "error",
137
139
 
138
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-negative-index.md
139
- "unicorn/prefer-negative-index": "error",
140
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-negative-index.md
141
+ "unicorn/prefer-negative-index": "error",
140
142
 
141
- // https://github.com/sindr esorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-modern-dom-apis.md
142
- "unicorn/prefer-modern-dom-apis": "error",
143
+ // https://github.com/sindr esorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-modern-dom-apis.md
144
+ "unicorn/prefer-modern-dom-apis": "error",
143
145
 
144
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-string-replace-all.md
145
- "unicorn/prefer-string-replace-all": "off",
146
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-string-replace-all.md
147
+ "unicorn/prefer-string-replace-all": "off",
146
148
 
147
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/string-content.md
148
- "unicorn/string-content": "off",
149
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/string-content.md
150
+ "unicorn/string-content": "off",
149
151
 
150
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-number-properties.md
151
- "unicorn/prefer-number-properties": "off",
152
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-number-properties.md
153
+ "unicorn/prefer-number-properties": "off",
152
154
 
153
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-set-has.md
154
- "unicorn/prefer-set-has": "off",
155
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-set-has.md
156
+ "unicorn/prefer-set-has": "off",
155
157
 
156
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-optional-catch-binding.md
157
- "unicorn/prefer-optional-catch-binding": "error",
158
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-optional-catch-binding.md
159
+ "unicorn/prefer-optional-catch-binding": "error",
158
160
 
159
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-undefined.md
160
- "unicorn/no-useless-undefined": "off",
161
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-undefined.md
162
+ "unicorn/no-useless-undefined": "off",
161
163
 
162
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-find.md
163
- "unicorn/prefer-array-find": "error",
164
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-find.md
165
+ "unicorn/prefer-array-find": "error",
164
166
 
165
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-reduce.md
166
- "unicorn/no-array-reduce": "error",
167
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-reduce.md
168
+ "unicorn/no-array-reduce": "error",
167
169
 
168
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/import-style.md
169
- "unicorn/import-style": "off",
170
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/import-style.md
171
+ "unicorn/import-style": "off",
170
172
 
171
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-math-trunc.md
172
- "unicorn/prefer-math-trunc": "error",
173
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-math-trunc.md
174
+ "unicorn/prefer-math-trunc": "error",
173
175
 
174
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/numeric-separators-style.md
175
- "unicorn/numeric-separators-style": "error",
176
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/numeric-separators-style.md
177
+ "unicorn/numeric-separators-style": "error",
176
178
 
177
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-ternary.md
178
- "unicorn/prefer-ternary": "off",
179
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-ternary.md
180
+ "unicorn/prefer-ternary": "off",
179
181
 
180
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-lonely-if.md
181
- "unicorn/no-lonely-if": "off",
182
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-lonely-if.md
183
+ "unicorn/no-lonely-if": "off",
182
184
 
183
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/empty-brace-spaces.md
184
- "unicorn/empty-brace-spaces": "off",
185
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/empty-brace-spaces.md
186
+ "unicorn/empty-brace-spaces": "off",
185
187
 
186
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-date-now.md
187
- "unicorn/prefer-date-now": "error",
188
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-date-now.md
189
+ "unicorn/prefer-date-now": "error",
188
190
 
189
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-some.md
190
- "unicorn/prefer-array-some": "error",
191
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-some.md
192
+ "unicorn/prefer-array-some": "error",
191
193
 
192
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-default-parameters.md
193
- "unicorn/prefer-default-parameters": "error",
194
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-default-parameters.md
195
+ "unicorn/prefer-default-parameters": "error",
194
196
 
195
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-new-array.md
196
- "unicorn/no-new-array": "error",
197
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-new-array.md
198
+ "unicorn/no-new-array": "error",
197
199
 
198
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-index-of.md
199
- "unicorn/prefer-array-index-of": "error",
200
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-index-of.md
201
+ "unicorn/prefer-array-index-of": "error",
200
202
 
201
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-regexp-test.md
202
- "unicorn/prefer-regexp-test": "error",
203
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-regexp-test.md
204
+ "unicorn/prefer-regexp-test": "error",
203
205
 
204
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-destructuring.md
205
- "unicorn/consistent-destructuring": "off",
206
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-destructuring.md
207
+ "unicorn/consistent-destructuring": "off",
206
208
 
207
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-for-each.md
208
- "unicorn/no-array-for-each": "off",
209
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-for-each.md
210
+ "unicorn/no-array-for-each": "off",
209
211
 
210
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-push-push.md
211
- "unicorn/no-array-push-push": "error",
212
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-push-push.md
213
+ "unicorn/no-array-push-push": "error",
212
214
 
213
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-this-assignment.md
214
- "unicorn/no-this-assignment": "error",
215
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-this-assignment.md
216
+ "unicorn/no-this-assignment": "error",
215
217
 
216
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-static-only-class.md
217
- "unicorn/no-static-only-class": "error",
218
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-static-only-class.md
219
+ "unicorn/no-static-only-class": "error",
218
220
 
219
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-flat.md
220
- "unicorn/prefer-array-flat": "error",
221
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-flat.md
222
+ "unicorn/prefer-array-flat": "error",
221
223
 
222
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-switch.md
223
- "unicorn/prefer-switch": "error",
224
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-switch.md
225
+ "unicorn/prefer-switch": "error",
224
226
 
225
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-node-protocol.md
226
- "unicorn/prefer-node-protocol": "error",
227
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-node-protocol.md
228
+ "unicorn/prefer-node-protocol": "error",
227
229
 
228
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-module.md
229
- // unicorn/prefer-module is enabled in node configs.
230
- "unicorn/prefer-module": "off",
230
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-module.md
231
+ // unicorn/prefer-module is enabled in node configs.
232
+ "unicorn/prefer-module": "off",
231
233
 
232
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-document-cookie.md
233
- "unicorn/no-document-cookie": "error",
234
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-document-cookie.md
235
+ "unicorn/no-document-cookie": "error",
234
236
 
235
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/require-array-join-separator.md
236
- "unicorn/require-array-join-separator": "error",
237
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/require-array-join-separator.md
238
+ "unicorn/require-array-join-separator": "error",
237
239
 
238
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/require-number-to-fixed-digits-argument.md
239
- "unicorn/require-number-to-fixed-digits-argument": "error",
240
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/require-number-to-fixed-digits-argument.md
241
+ "unicorn/require-number-to-fixed-digits-argument": "error",
240
242
 
241
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-prototype-methods.md
242
- "unicorn/prefer-prototype-methods": "error",
243
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-prototype-methods.md
244
+ "unicorn/prefer-prototype-methods": "error",
243
245
 
244
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-object-has-own.md
245
- "unicorn/prefer-object-has-own": "error",
246
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-object-has-own.md
247
+ "unicorn/prefer-object-has-own": "error",
246
248
 
247
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-method-this-argument.md
248
- "unicorn/no-array-method-this-argument": "error",
249
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-method-this-argument.md
250
+ "unicorn/no-array-method-this-argument": "error",
249
251
 
250
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/require-post-message-target-origin.md
251
- "unicorn/require-post-message-target-origin": "error",
252
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/require-post-message-target-origin.md
253
+ "unicorn/require-post-message-target-origin": "error",
252
254
 
253
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-top-level-await.md
254
- "unicorn/prefer-top-level-await": "error",
255
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-top-level-await.md
256
+ "unicorn/prefer-top-level-await": "error",
255
257
 
256
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-at.md
257
- "unicorn/prefer-at": "error",
258
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-at.md
259
+ "unicorn/prefer-at": "error",
258
260
 
259
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-object-from-entries.md
260
- "unicorn/prefer-object-from-entries": "error",
261
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-object-from-entries.md
262
+ "unicorn/prefer-object-from-entries": "error",
261
263
 
262
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-length-check.md
263
- "unicorn/no-useless-length-check": "error",
264
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-length-check.md
265
+ "unicorn/no-useless-length-check": "error",
264
266
 
265
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-spread.md
266
- "unicorn/no-useless-spread": "error",
267
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-spread.md
268
+ "unicorn/no-useless-spread": "error",
267
269
 
268
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-fallback-in-spread.md
269
- "unicorn/no-useless-fallback-in-spread": "error",
270
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-fallback-in-spread.md
271
+ "unicorn/no-useless-fallback-in-spread": "error",
270
272
 
271
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-remove-event-listener.md
272
- "unicorn/no-invalid-remove-event-listener": "error",
273
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-remove-event-listener.md
274
+ "unicorn/no-invalid-remove-event-listener": "error",
273
275
 
274
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/template-indent.md
275
- // prettier does that
276
- "unicorn/template-indent": "off",
276
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/template-indent.md
277
+ // prettier does that
278
+ "unicorn/template-indent": "off",
277
279
 
278
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-empty-file.md
279
- "unicorn/no-empty-file": "off",
280
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-empty-file.md
281
+ "unicorn/no-empty-file": "off",
280
282
 
281
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-export-from.md
282
- "unicorn/prefer-export-from": "error",
283
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-export-from.md
284
+ "unicorn/prefer-export-from": "error",
283
285
 
284
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-code-point.md
285
- "unicorn/prefer-code-point": "error",
286
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-code-point.md
287
+ "unicorn/prefer-code-point": "error",
286
288
 
287
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-await-expression-member.md
288
- "unicorn/no-await-expression-member": "error",
289
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-await-expression-member.md
290
+ "unicorn/no-await-expression-member": "error",
289
291
 
290
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-thenable.md
291
- "unicorn/no-thenable": "off",
292
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-thenable.md
293
+ "unicorn/no-thenable": "off",
292
294
 
293
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-promise-resolve-reject.md
294
- "unicorn/no-useless-promise-resolve-reject": "error",
295
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-promise-resolve-reject.md
296
+ "unicorn/no-useless-promise-resolve-reject": "error",
295
297
 
296
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/relative-url-style.md
297
- "unicorn/relative-url-style": ["error", "always"],
298
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/relative-url-style.md
299
+ "unicorn/relative-url-style": ["error", "always"],
298
300
 
299
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-json-parse-buffer.md
300
- "unicorn/prefer-json-parse-buffer": "error",
301
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-json-parse-buffer.md
302
+ "unicorn/prefer-json-parse-buffer": "error",
301
303
 
302
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/text-encoding-identifier-case.md
303
- "unicorn/text-encoding-identifier-case": "error",
304
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/text-encoding-identifier-case.md
305
+ "unicorn/text-encoding-identifier-case": "error",
304
306
 
305
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-native-coercion-functions.md
306
- "unicorn/prefer-native-coercion-functions": "error",
307
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-native-coercion-functions.md
308
+ "unicorn/prefer-native-coercion-functions": "error",
307
309
 
308
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unreadable-iife.md
309
- "unicorn/no-unreadable-iife": "error",
310
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unreadable-iife.md
311
+ "unicorn/no-unreadable-iife": "error",
310
312
 
311
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-modern-math-apis.md
312
- "unicorn/prefer-modern-math-apis": "warn",
313
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-modern-math-apis.md
314
+ "unicorn/prefer-modern-math-apis": "warn",
313
315
 
314
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-switch-case.md
315
- "unicorn/no-useless-switch-case": "off",
316
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-switch-case.md
317
+ "unicorn/no-useless-switch-case": "off",
316
318
 
317
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-logical-operator-over-ternary.md
318
- "unicorn/prefer-logical-operator-over-ternary": "error",
319
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-logical-operator-over-ternary.md
320
+ "unicorn/prefer-logical-operator-over-ternary": "error",
319
321
 
320
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-event-target.md
321
- "unicorn/prefer-event-target": "error",
322
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-event-target.md
323
+ "unicorn/prefer-event-target": "error",
322
324
 
323
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-await.md
324
- "unicorn/no-unnecessary-await": "error",
325
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-await.md
326
+ "unicorn/no-unnecessary-await": "error",
325
327
 
326
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/switch-case-braces.md
327
- "unicorn/switch-case-braces": "off",
328
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/switch-case-braces.md
329
+ "unicorn/switch-case-braces": "off",
328
330
 
329
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-typeof-undefined.md
330
- "unicorn/no-typeof-undefined": "error",
331
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-typeof-undefined.md
332
+ "unicorn/no-typeof-undefined": "error",
331
333
 
332
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-negated-condition.md
333
- "unicorn/no-negated-condition": "off",
334
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-negated-condition.md
335
+ "unicorn/no-negated-condition": "off",
334
336
 
335
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-set-size.md
336
- "unicorn/prefer-set-size": "error",
337
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-set-size.md
338
+ "unicorn/prefer-set-size": "error",
337
339
 
338
- // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-blob-reading-methods.md
339
- "unicorn/prefer-blob-reading-methods": "error",
340
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-blob-reading-methods.md
341
+ "unicorn/prefer-blob-reading-methods": "error",
342
+ },
340
343
  },
341
-
342
- overrides: [
343
- {
344
- files: ["scripts/**"],
345
- rules: {
346
- "unicorn/no-process-exit": "off",
347
- },
344
+ {
345
+ files: ["scripts/**"],
346
+ rules: {
347
+ "unicorn/no-process-exit": "off",
348
348
  },
349
- ],
350
- };
349
+ },
350
+ ];