@kazupon/eslint-config 0.17.0 → 0.18.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.
- package/README.md +8 -1
- package/dist/config.d.cts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/configs/index.d.cts +1 -0
- package/dist/configs/index.d.ts +1 -0
- package/dist/configs/markdown.d.cts +28 -0
- package/dist/configs/markdown.d.ts +28 -0
- package/dist/globs.d.cts +1 -0
- package/dist/globs.d.ts +1 -0
- package/dist/index.cjs +185 -56
- package/dist/index.js +174 -57
- package/dist/types/gens/eslint.d.cts +2 -1
- package/dist/types/gens/eslint.d.ts +2 -1
- package/dist/types/gens/imports.d.cts +139 -138
- package/dist/types/gens/imports.d.ts +139 -138
- package/dist/types/gens/javascript.d.cts +6 -1
- package/dist/types/gens/javascript.d.ts +6 -1
- package/dist/types/gens/markdown.d.cts +42 -0
- package/dist/types/gens/markdown.d.ts +42 -0
- package/dist/types/gens/unicorn.d.cts +153 -138
- package/dist/types/gens/unicorn.d.ts +153 -138
- package/dist/types/index.d.cts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +15 -10
|
@@ -2,687 +2,702 @@ import type { Linter } from 'eslint';
|
|
|
2
2
|
export interface UnicornRules {
|
|
3
3
|
/**
|
|
4
4
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
5
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/better-regex.md
|
|
6
6
|
*/
|
|
7
7
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
8
8
|
/**
|
|
9
9
|
* Enforce a specific parameter name in catch clauses.
|
|
10
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/catch-error-name.md
|
|
11
11
|
*/
|
|
12
12
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
13
13
|
/**
|
|
14
14
|
* Use destructured variables over properties.
|
|
15
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
15
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/consistent-destructuring.md
|
|
16
16
|
*/
|
|
17
17
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
18
18
|
/**
|
|
19
19
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
20
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/consistent-empty-array-spread.md
|
|
21
21
|
*/
|
|
22
22
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
23
|
+
/**
|
|
24
|
+
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
25
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/consistent-existence-index-check.md
|
|
26
|
+
*/
|
|
27
|
+
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
23
28
|
/**
|
|
24
29
|
* Move function definitions to the highest possible scope.
|
|
25
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
30
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/consistent-function-scoping.md
|
|
26
31
|
*/
|
|
27
32
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
28
33
|
/**
|
|
29
34
|
* Enforce correct `Error` subclassing.
|
|
30
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
35
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/custom-error-definition.md
|
|
31
36
|
*/
|
|
32
37
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
33
38
|
/**
|
|
34
39
|
* Enforce no spaces between braces.
|
|
35
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
40
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/empty-brace-spaces.md
|
|
36
41
|
*/
|
|
37
42
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
38
43
|
/**
|
|
39
44
|
* Enforce passing a `message` value when creating a built-in error.
|
|
40
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
45
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/error-message.md
|
|
41
46
|
*/
|
|
42
47
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
43
48
|
/**
|
|
44
49
|
* Require escape sequences to use uppercase values.
|
|
45
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
50
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/escape-case.md
|
|
46
51
|
*/
|
|
47
52
|
'unicorn/escape-case'?: Linter.RuleEntry<[]>;
|
|
48
53
|
/**
|
|
49
54
|
* Add expiration conditions to TODO comments.
|
|
50
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
55
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/expiring-todo-comments.md
|
|
51
56
|
*/
|
|
52
57
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
53
58
|
/**
|
|
54
59
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
55
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
60
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/explicit-length-check.md
|
|
56
61
|
*/
|
|
57
62
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
58
63
|
/**
|
|
59
64
|
* Enforce a case style for filenames.
|
|
60
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
65
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/filename-case.md
|
|
61
66
|
*/
|
|
62
67
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
63
68
|
/**
|
|
64
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
69
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#import-index
|
|
65
70
|
* @deprecated
|
|
66
71
|
*/
|
|
67
72
|
'unicorn/import-index'?: Linter.RuleEntry<[]>;
|
|
68
73
|
/**
|
|
69
74
|
* Enforce specific import styles per module.
|
|
70
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
75
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/import-style.md
|
|
71
76
|
*/
|
|
72
77
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
73
78
|
/**
|
|
74
79
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
75
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
80
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/new-for-builtins.md
|
|
76
81
|
*/
|
|
77
82
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
78
83
|
/**
|
|
79
84
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
80
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
85
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
81
86
|
*/
|
|
82
87
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
83
88
|
/**
|
|
84
89
|
* Disallow anonymous functions and classes as the default export.
|
|
85
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
90
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-anonymous-default-export.md
|
|
86
91
|
*/
|
|
87
92
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
88
93
|
/**
|
|
89
94
|
* Prevent passing a function reference directly to iterator methods.
|
|
90
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
95
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-callback-reference.md
|
|
91
96
|
*/
|
|
92
97
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
|
|
93
98
|
/**
|
|
94
99
|
* Prefer `for…of` over the `forEach` method.
|
|
95
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
100
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-for-each.md
|
|
96
101
|
*/
|
|
97
102
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
|
|
98
103
|
/**
|
|
99
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
104
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#no-array-instanceof
|
|
100
105
|
* @deprecated
|
|
101
106
|
*/
|
|
102
107
|
'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>;
|
|
103
108
|
/**
|
|
104
109
|
* Disallow using the `this` argument in array methods.
|
|
105
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
110
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-method-this-argument.md
|
|
106
111
|
*/
|
|
107
112
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
108
113
|
/**
|
|
109
114
|
* Enforce combining multiple `Array#push()` into one call.
|
|
110
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
115
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-push-push.md
|
|
111
116
|
*/
|
|
112
117
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>;
|
|
113
118
|
/**
|
|
114
119
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
115
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
120
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-reduce.md
|
|
116
121
|
*/
|
|
117
122
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
118
123
|
/**
|
|
119
124
|
* Disallow member access from await expression.
|
|
120
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
125
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-await-expression-member.md
|
|
121
126
|
*/
|
|
122
127
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
123
128
|
/**
|
|
124
129
|
* Disallow using `await` in `Promise` method parameters.
|
|
125
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
130
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-await-in-promise-methods.md
|
|
126
131
|
*/
|
|
127
132
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
128
133
|
/**
|
|
129
134
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
130
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
135
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-console-spaces.md
|
|
131
136
|
*/
|
|
132
137
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
133
138
|
/**
|
|
134
139
|
* Do not use `document.cookie` directly.
|
|
135
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
140
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-document-cookie.md
|
|
136
141
|
*/
|
|
137
142
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
138
143
|
/**
|
|
139
144
|
* Disallow empty files.
|
|
140
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
145
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-empty-file.md
|
|
141
146
|
*/
|
|
142
147
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
|
|
143
148
|
/**
|
|
144
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
149
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
|
|
145
150
|
* @deprecated
|
|
146
151
|
*/
|
|
147
152
|
'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>;
|
|
148
153
|
/**
|
|
149
154
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
150
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
155
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-for-loop.md
|
|
151
156
|
*/
|
|
152
157
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
153
158
|
/**
|
|
154
159
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
155
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
160
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-hex-escape.md
|
|
156
161
|
*/
|
|
157
162
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
158
163
|
/**
|
|
159
164
|
* Require `Array.isArray()` instead of `instanceof Array`.
|
|
160
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
165
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-instanceof-array.md
|
|
161
166
|
*/
|
|
162
167
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
163
168
|
/**
|
|
164
169
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
165
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
170
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-invalid-fetch-options.md
|
|
166
171
|
*/
|
|
167
172
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
168
173
|
/**
|
|
169
174
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
170
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
175
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
171
176
|
*/
|
|
172
177
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
173
178
|
/**
|
|
174
179
|
* Disallow identifiers starting with `new` or `class`.
|
|
175
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
180
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-keyword-prefix.md
|
|
176
181
|
*/
|
|
177
182
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
178
183
|
/**
|
|
179
184
|
* Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
180
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
185
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-length-as-slice-end.md
|
|
181
186
|
*/
|
|
182
187
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
183
188
|
/**
|
|
184
189
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
185
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
190
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-lonely-if.md
|
|
186
191
|
*/
|
|
187
192
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
188
193
|
/**
|
|
189
194
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
190
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
195
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
191
196
|
*/
|
|
192
197
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
193
198
|
/**
|
|
194
199
|
* Disallow negated conditions.
|
|
195
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
200
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-negated-condition.md
|
|
196
201
|
*/
|
|
197
202
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
198
203
|
/**
|
|
199
204
|
* Disallow negated expression in equality check.
|
|
200
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
205
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-negation-in-equality-check.md
|
|
201
206
|
*/
|
|
202
207
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
203
208
|
/**
|
|
204
209
|
* Disallow nested ternary expressions.
|
|
205
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
210
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-nested-ternary.md
|
|
206
211
|
*/
|
|
207
212
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
208
213
|
/**
|
|
209
214
|
* Disallow `new Array()`.
|
|
210
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
215
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-new-array.md
|
|
211
216
|
*/
|
|
212
217
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
213
218
|
/**
|
|
214
219
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
215
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
220
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-new-buffer.md
|
|
216
221
|
*/
|
|
217
222
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
218
223
|
/**
|
|
219
224
|
* Disallow the use of the `null` literal.
|
|
220
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
225
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-null.md
|
|
221
226
|
*/
|
|
222
227
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
223
228
|
/**
|
|
224
229
|
* Disallow the use of objects as default parameters.
|
|
225
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
230
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-object-as-default-parameter.md
|
|
226
231
|
*/
|
|
227
232
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
228
233
|
/**
|
|
229
234
|
* Disallow `process.exit()`.
|
|
230
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
235
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-process-exit.md
|
|
231
236
|
*/
|
|
232
237
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
233
238
|
/**
|
|
234
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
239
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#no-reduce
|
|
235
240
|
* @deprecated
|
|
236
241
|
*/
|
|
237
242
|
'unicorn/no-reduce'?: Linter.RuleEntry<[]>;
|
|
238
243
|
/**
|
|
239
244
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
240
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
245
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
241
246
|
*/
|
|
242
247
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
243
248
|
/**
|
|
244
249
|
* Disallow classes that only have static members.
|
|
245
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
250
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-static-only-class.md
|
|
246
251
|
*/
|
|
247
252
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
248
253
|
/**
|
|
249
254
|
* Disallow `then` property.
|
|
250
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
255
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-thenable.md
|
|
251
256
|
*/
|
|
252
257
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
253
258
|
/**
|
|
254
259
|
* Disallow assigning `this` to a variable.
|
|
255
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
260
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-this-assignment.md
|
|
256
261
|
*/
|
|
257
262
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
258
263
|
/**
|
|
259
264
|
* Disallow comparing `undefined` using `typeof`.
|
|
260
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
265
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-typeof-undefined.md
|
|
261
266
|
*/
|
|
262
267
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
263
268
|
/**
|
|
264
269
|
* Disallow awaiting non-promise values.
|
|
265
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
270
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unnecessary-await.md
|
|
266
271
|
*/
|
|
267
272
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
268
273
|
/**
|
|
269
274
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
270
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
275
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
271
276
|
*/
|
|
272
277
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
273
278
|
/**
|
|
274
279
|
* Disallow unreadable array destructuring.
|
|
275
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
280
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
276
281
|
*/
|
|
277
282
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
|
|
278
283
|
/**
|
|
279
284
|
* Disallow unreadable IIFEs.
|
|
280
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
285
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unreadable-iife.md
|
|
281
286
|
*/
|
|
282
287
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
283
288
|
/**
|
|
284
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
289
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#no-unsafe-regex
|
|
285
290
|
* @deprecated
|
|
286
291
|
*/
|
|
287
292
|
'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>;
|
|
288
293
|
/**
|
|
289
294
|
* Disallow unused object properties.
|
|
290
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
295
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unused-properties.md
|
|
291
296
|
*/
|
|
292
297
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
293
298
|
/**
|
|
294
299
|
* Disallow useless fallback when spreading in object literals.
|
|
295
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
300
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
296
301
|
*/
|
|
297
302
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
298
303
|
/**
|
|
299
304
|
* Disallow useless array length check.
|
|
300
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
305
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-length-check.md
|
|
301
306
|
*/
|
|
302
307
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
303
308
|
/**
|
|
304
309
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
305
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
310
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
306
311
|
*/
|
|
307
312
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
308
313
|
/**
|
|
309
314
|
* Disallow unnecessary spread.
|
|
310
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
315
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-spread.md
|
|
311
316
|
*/
|
|
312
317
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
313
318
|
/**
|
|
314
319
|
* Disallow useless case in switch statements.
|
|
315
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
320
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-switch-case.md
|
|
316
321
|
*/
|
|
317
322
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
318
323
|
/**
|
|
319
324
|
* Disallow useless `undefined`.
|
|
320
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
325
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-undefined.md
|
|
321
326
|
*/
|
|
322
327
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
323
328
|
/**
|
|
324
329
|
* Disallow number literals with zero fractions or dangling dots.
|
|
325
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
330
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-zero-fractions.md
|
|
326
331
|
*/
|
|
327
332
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
328
333
|
/**
|
|
329
334
|
* Enforce proper case for numeric literals.
|
|
330
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
335
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/number-literal-case.md
|
|
331
336
|
*/
|
|
332
337
|
'unicorn/number-literal-case'?: Linter.RuleEntry<[]>;
|
|
333
338
|
/**
|
|
334
339
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
335
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
340
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/numeric-separators-style.md
|
|
336
341
|
*/
|
|
337
342
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
338
343
|
/**
|
|
339
344
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
340
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
345
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-add-event-listener.md
|
|
341
346
|
*/
|
|
342
347
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
343
348
|
/**
|
|
344
349
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
345
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
350
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-find.md
|
|
346
351
|
*/
|
|
347
352
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
348
353
|
/**
|
|
349
354
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
350
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
355
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-flat.md
|
|
351
356
|
*/
|
|
352
357
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
353
358
|
/**
|
|
354
359
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
355
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
360
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-flat-map.md
|
|
356
361
|
*/
|
|
357
362
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
358
363
|
/**
|
|
359
364
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
360
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
365
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-index-of.md
|
|
361
366
|
*/
|
|
362
367
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
363
368
|
/**
|
|
364
369
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
365
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
370
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-some.md
|
|
366
371
|
*/
|
|
367
372
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
368
373
|
/**
|
|
369
374
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
370
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
375
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-at.md
|
|
371
376
|
*/
|
|
372
377
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
373
378
|
/**
|
|
374
379
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
375
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
380
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
376
381
|
*/
|
|
377
382
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
378
383
|
/**
|
|
379
384
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
380
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
385
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-code-point.md
|
|
381
386
|
*/
|
|
382
387
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
383
388
|
/**
|
|
384
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
389
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-dataset
|
|
385
390
|
* @deprecated
|
|
386
391
|
*/
|
|
387
392
|
'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>;
|
|
388
393
|
/**
|
|
389
394
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
390
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
395
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-date-now.md
|
|
391
396
|
*/
|
|
392
397
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
393
398
|
/**
|
|
394
399
|
* Prefer default parameters over reassignment.
|
|
395
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
400
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-default-parameters.md
|
|
396
401
|
*/
|
|
397
402
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
|
|
398
403
|
/**
|
|
399
404
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
400
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
405
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-dom-node-append.md
|
|
401
406
|
*/
|
|
402
407
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
403
408
|
/**
|
|
404
409
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
405
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
410
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
406
411
|
*/
|
|
407
412
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
408
413
|
/**
|
|
409
414
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
410
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
415
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-dom-node-remove.md
|
|
411
416
|
*/
|
|
412
417
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
413
418
|
/**
|
|
414
419
|
* Prefer `.textContent` over `.innerText`.
|
|
415
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
420
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
416
421
|
*/
|
|
417
422
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
418
423
|
/**
|
|
419
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
424
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-event-key
|
|
420
425
|
* @deprecated
|
|
421
426
|
*/
|
|
422
427
|
'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>;
|
|
423
428
|
/**
|
|
424
429
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
425
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
430
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-event-target.md
|
|
426
431
|
*/
|
|
427
432
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
428
433
|
/**
|
|
429
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
434
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
|
|
430
435
|
* @deprecated
|
|
431
436
|
*/
|
|
432
437
|
'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>;
|
|
433
438
|
/**
|
|
434
439
|
* Prefer `export…from` when re-exporting.
|
|
435
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
440
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-export-from.md
|
|
436
441
|
*/
|
|
437
442
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
438
443
|
/**
|
|
439
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
444
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-flat-map
|
|
440
445
|
* @deprecated
|
|
441
446
|
*/
|
|
442
447
|
'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>;
|
|
448
|
+
/**
|
|
449
|
+
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
450
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-global-this.md
|
|
451
|
+
*/
|
|
452
|
+
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
443
453
|
/**
|
|
444
454
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
445
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
455
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-includes.md
|
|
446
456
|
*/
|
|
447
457
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
448
458
|
/**
|
|
449
459
|
* Prefer reading a JSON file as a buffer.
|
|
450
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
460
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
451
461
|
*/
|
|
452
462
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
453
463
|
/**
|
|
454
464
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
455
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
465
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
456
466
|
*/
|
|
457
467
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
458
468
|
/**
|
|
459
469
|
* Prefer using a logical operator over a ternary.
|
|
460
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
470
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
461
471
|
*/
|
|
462
472
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
473
|
+
/**
|
|
474
|
+
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
475
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-math-min-max.md
|
|
476
|
+
*/
|
|
477
|
+
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
463
478
|
/**
|
|
464
479
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
465
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
480
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-math-trunc.md
|
|
466
481
|
*/
|
|
467
482
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
468
483
|
/**
|
|
469
484
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
470
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
485
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
471
486
|
*/
|
|
472
487
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
473
488
|
/**
|
|
474
489
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
475
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
490
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-modern-math-apis.md
|
|
476
491
|
*/
|
|
477
492
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
478
493
|
/**
|
|
479
494
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
480
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
495
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-module.md
|
|
481
496
|
*/
|
|
482
497
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
483
498
|
/**
|
|
484
499
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
485
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
500
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
486
501
|
*/
|
|
487
502
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
488
503
|
/**
|
|
489
504
|
* Prefer negative index over `.length - index` when possible.
|
|
490
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
505
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-negative-index.md
|
|
491
506
|
*/
|
|
492
507
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
493
508
|
/**
|
|
494
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
509
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-node-append
|
|
495
510
|
* @deprecated
|
|
496
511
|
*/
|
|
497
512
|
'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>;
|
|
498
513
|
/**
|
|
499
514
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
500
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
515
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-node-protocol.md
|
|
501
516
|
*/
|
|
502
517
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
503
518
|
/**
|
|
504
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
519
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-node-remove
|
|
505
520
|
* @deprecated
|
|
506
521
|
*/
|
|
507
522
|
'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>;
|
|
508
523
|
/**
|
|
509
524
|
* Prefer `Number` static properties over global ones.
|
|
510
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
525
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-number-properties.md
|
|
511
526
|
*/
|
|
512
527
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
513
528
|
/**
|
|
514
529
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
515
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
530
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-object-from-entries.md
|
|
516
531
|
*/
|
|
517
532
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
518
533
|
/**
|
|
519
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
534
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-object-has-own
|
|
520
535
|
* @deprecated
|
|
521
536
|
*/
|
|
522
537
|
'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>;
|
|
523
538
|
/**
|
|
524
539
|
* Prefer omitting the `catch` binding parameter.
|
|
525
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
540
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
526
541
|
*/
|
|
527
542
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
528
543
|
/**
|
|
529
544
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
530
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
545
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-prototype-methods.md
|
|
531
546
|
*/
|
|
532
547
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
533
548
|
/**
|
|
534
|
-
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()`.
|
|
535
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
549
|
+
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
550
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-query-selector.md
|
|
536
551
|
*/
|
|
537
552
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
|
|
538
553
|
/**
|
|
539
554
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
540
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
555
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-reflect-apply.md
|
|
541
556
|
*/
|
|
542
557
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
543
558
|
/**
|
|
544
559
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
545
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
560
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-regexp-test.md
|
|
546
561
|
*/
|
|
547
562
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
548
563
|
/**
|
|
549
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
564
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-replace-all
|
|
550
565
|
* @deprecated
|
|
551
566
|
*/
|
|
552
567
|
'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>;
|
|
553
568
|
/**
|
|
554
569
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
555
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
570
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-set-has.md
|
|
556
571
|
*/
|
|
557
572
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
|
|
558
573
|
/**
|
|
559
574
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
560
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
575
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-set-size.md
|
|
561
576
|
*/
|
|
562
577
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
563
578
|
/**
|
|
564
579
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
565
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
580
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-spread.md
|
|
566
581
|
*/
|
|
567
582
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
568
583
|
/**
|
|
569
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
584
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
|
|
570
585
|
* @deprecated
|
|
571
586
|
*/
|
|
572
587
|
'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
573
588
|
/**
|
|
574
589
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
575
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
590
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-raw.md
|
|
576
591
|
*/
|
|
577
592
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
578
593
|
/**
|
|
579
594
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
580
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
595
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-replace-all.md
|
|
581
596
|
*/
|
|
582
597
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
583
598
|
/**
|
|
584
599
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
585
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
600
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-slice.md
|
|
586
601
|
*/
|
|
587
602
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
588
603
|
/**
|
|
589
604
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
590
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
605
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
591
606
|
*/
|
|
592
607
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
593
608
|
/**
|
|
594
609
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
595
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
610
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
596
611
|
*/
|
|
597
612
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
598
613
|
/**
|
|
599
614
|
* Prefer using `structuredClone` to create a deep clone.
|
|
600
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
615
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-structured-clone.md
|
|
601
616
|
*/
|
|
602
617
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
603
618
|
/**
|
|
604
619
|
* Prefer `switch` over multiple `else-if`.
|
|
605
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
620
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-switch.md
|
|
606
621
|
*/
|
|
607
622
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
608
623
|
/**
|
|
609
624
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
610
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
625
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-ternary.md
|
|
611
626
|
*/
|
|
612
627
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
613
628
|
/**
|
|
614
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
629
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-text-content
|
|
615
630
|
* @deprecated
|
|
616
631
|
*/
|
|
617
632
|
'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>;
|
|
618
633
|
/**
|
|
619
634
|
* Prefer top-level await over top-level promises and async function calls.
|
|
620
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
635
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-top-level-await.md
|
|
621
636
|
*/
|
|
622
637
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
623
638
|
/**
|
|
624
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
639
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-trim-start-end
|
|
625
640
|
* @deprecated
|
|
626
641
|
*/
|
|
627
642
|
'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
628
643
|
/**
|
|
629
644
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
630
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
645
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-type-error.md
|
|
631
646
|
*/
|
|
632
647
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
633
648
|
/**
|
|
634
649
|
* Prevent abbreviations.
|
|
635
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
650
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prevent-abbreviations.md
|
|
636
651
|
*/
|
|
637
652
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
638
653
|
/**
|
|
639
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
654
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#regex-shorthand
|
|
640
655
|
* @deprecated
|
|
641
656
|
*/
|
|
642
657
|
'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>;
|
|
643
658
|
/**
|
|
644
659
|
* Enforce consistent relative URL style.
|
|
645
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
660
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/relative-url-style.md
|
|
646
661
|
*/
|
|
647
662
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
648
663
|
/**
|
|
649
664
|
* Enforce using the separator argument with `Array#join()`.
|
|
650
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
665
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/require-array-join-separator.md
|
|
651
666
|
*/
|
|
652
667
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
653
668
|
/**
|
|
654
669
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
655
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
670
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
656
671
|
*/
|
|
657
672
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
658
673
|
/**
|
|
659
674
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
660
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
675
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/require-post-message-target-origin.md
|
|
661
676
|
*/
|
|
662
677
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
663
678
|
/**
|
|
664
679
|
* Enforce better string content.
|
|
665
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
680
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/string-content.md
|
|
666
681
|
*/
|
|
667
682
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
668
683
|
/**
|
|
669
684
|
* Enforce consistent brace style for `case` clauses.
|
|
670
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
685
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/switch-case-braces.md
|
|
671
686
|
*/
|
|
672
687
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
673
688
|
/**
|
|
674
689
|
* Fix whitespace-insensitive template indentation.
|
|
675
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
690
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/template-indent.md
|
|
676
691
|
*/
|
|
677
692
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
678
693
|
/**
|
|
679
694
|
* Enforce consistent case for text encoding identifiers.
|
|
680
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
695
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/text-encoding-identifier-case.md
|
|
681
696
|
*/
|
|
682
697
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>;
|
|
683
698
|
/**
|
|
684
699
|
* Require `new` when creating an error.
|
|
685
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
700
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/throw-new-error.md
|
|
686
701
|
*/
|
|
687
702
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
688
703
|
}
|