Skip to content

Commit 8896551

Browse files
committed
chore: reformat code
1 parent cadc584 commit 8896551

File tree

4 files changed

+100
-115
lines changed

4 files changed

+100
-115
lines changed

packages/plugins/eslint-plugin-react-hooks-extra/src/rules/ensure-use-callback-has-non-empty-deps.spec.ts

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -148,16 +148,16 @@ ruleTester.run(RULE_NAME, rule, {
148148
return <div>{count}</div>;
149149
}
150150
`,
151-
settings: {
152-
reactOptions: {
153-
importSource: "roact",
154-
},
155-
},
156151
errors: [
157152
{
158153
messageId: "ENSURE_USE_CALLBACK_HAS_NON_EMPTY_DEPS",
159154
},
160155
],
156+
settings: {
157+
reactOptions: {
158+
importSource: "roact",
159+
},
160+
},
161161
},
162162
{
163163
code: dedent`
@@ -169,16 +169,16 @@ ruleTester.run(RULE_NAME, rule, {
169169
return <div>{count}</div>;
170170
}
171171
`,
172-
settings: {
173-
reactOptions: {
174-
importSource: "roact",
175-
},
176-
},
177172
errors: [
178173
{
179174
messageId: "ENSURE_USE_CALLBACK_HAS_NON_EMPTY_DEPS",
180175
},
181176
],
177+
settings: {
178+
reactOptions: {
179+
importSource: "roact",
180+
},
181+
},
182182
},
183183
{
184184
code: dedent`
@@ -190,16 +190,16 @@ ruleTester.run(RULE_NAME, rule, {
190190
return <div>{count}</div>;
191191
}
192192
`,
193-
settings: {
194-
reactOptions: {
195-
importSource: "roact",
196-
},
197-
},
198193
errors: [
199194
{
200195
messageId: "ENSURE_USE_CALLBACK_HAS_NON_EMPTY_DEPS",
201196
},
202197
],
198+
settings: {
199+
reactOptions: {
200+
importSource: "roact",
201+
},
202+
},
203203
},
204204
{
205205
code: dedent`
@@ -211,16 +211,16 @@ ruleTester.run(RULE_NAME, rule, {
211211
return <div>{count}</div>;
212212
}
213213
`,
214-
settings: {
215-
reactOptions: {
216-
importSource: "@pika/react",
217-
},
218-
},
219214
errors: [
220215
{
221216
messageId: "ENSURE_USE_CALLBACK_HAS_NON_EMPTY_DEPS",
222217
},
223218
],
219+
settings: {
220+
reactOptions: {
221+
importSource: "@pika/react",
222+
},
223+
},
224224
},
225225
{
226226
code: dedent`
@@ -232,16 +232,16 @@ ruleTester.run(RULE_NAME, rule, {
232232
return <div>{count}</div>;
233233
}
234234
`,
235-
settings: {
236-
reactOptions: {
237-
importSource: "@pika/react",
238-
},
239-
},
240235
errors: [
241236
{
242237
messageId: "ENSURE_USE_CALLBACK_HAS_NON_EMPTY_DEPS",
243238
},
244239
],
240+
settings: {
241+
reactOptions: {
242+
importSource: "@pika/react",
243+
},
244+
},
245245
},
246246
{
247247
code: dedent`
@@ -253,16 +253,16 @@ ruleTester.run(RULE_NAME, rule, {
253253
return <div>{count}</div>;
254254
}
255255
`,
256-
settings: {
257-
reactOptions: {
258-
importSource: "@pika/react",
259-
},
260-
},
261256
errors: [
262257
{
263258
messageId: "ENSURE_USE_CALLBACK_HAS_NON_EMPTY_DEPS",
264259
},
265260
],
261+
settings: {
262+
reactOptions: {
263+
importSource: "@pika/react",
264+
},
265+
},
266266
},
267267
{
268268
code: dedent`

packages/plugins/eslint-plugin-react-hooks-extra/src/rules/ensure-use-memo-has-non-empty-deps.spec.ts

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -120,16 +120,16 @@ ruleTester.run(RULE_NAME, rule, {
120120
return <div>{count}</div>;
121121
}
122122
`,
123-
settings: {
124-
reactOptions: {
125-
importSource: "roact",
126-
},
127-
},
128123
errors: [
129124
{
130125
messageId: "ENSURE_USE_MEMO_HAS_NON_EMPTY_DEPS",
131126
},
132127
],
128+
settings: {
129+
reactOptions: {
130+
importSource: "roact",
131+
},
132+
},
133133
},
134134
{
135135
code: dedent`
@@ -141,16 +141,16 @@ ruleTester.run(RULE_NAME, rule, {
141141
return <div>{count}</div>;
142142
}
143143
`,
144-
settings: {
145-
reactOptions: {
146-
importSource: "roact",
147-
},
148-
},
149144
errors: [
150145
{
151146
messageId: "ENSURE_USE_MEMO_HAS_NON_EMPTY_DEPS",
152147
},
153148
],
149+
settings: {
150+
reactOptions: {
151+
importSource: "roact",
152+
},
153+
},
154154
},
155155
{
156156
code: dedent`
@@ -162,16 +162,16 @@ ruleTester.run(RULE_NAME, rule, {
162162
return <div>{count}</div>;
163163
}
164164
`,
165-
settings: {
166-
reactOptions: {
167-
importSource: "roact",
168-
},
169-
},
170165
errors: [
171166
{
172167
messageId: "ENSURE_USE_MEMO_HAS_NON_EMPTY_DEPS",
173168
},
174169
],
170+
settings: {
171+
reactOptions: {
172+
importSource: "roact",
173+
},
174+
},
175175
},
176176
{
177177
code: dedent`
@@ -183,16 +183,16 @@ ruleTester.run(RULE_NAME, rule, {
183183
return <div>{count}</div>;
184184
}
185185
`,
186-
settings: {
187-
reactOptions: {
188-
importSource: "@pika/react",
189-
},
190-
},
191186
errors: [
192187
{
193188
messageId: "ENSURE_USE_MEMO_HAS_NON_EMPTY_DEPS",
194189
},
195190
],
191+
settings: {
192+
reactOptions: {
193+
importSource: "@pika/react",
194+
},
195+
},
196196
},
197197
{
198198
code: dedent`
@@ -204,16 +204,16 @@ ruleTester.run(RULE_NAME, rule, {
204204
return <div>{count}</div>;
205205
}
206206
`,
207-
settings: {
208-
reactOptions: {
209-
importSource: "@pika/react",
210-
},
211-
},
212207
errors: [
213208
{
214209
messageId: "ENSURE_USE_MEMO_HAS_NON_EMPTY_DEPS",
215210
},
216211
],
212+
settings: {
213+
reactOptions: {
214+
importSource: "@pika/react",
215+
},
216+
},
217217
},
218218
{
219219
code: dedent`
@@ -225,16 +225,16 @@ ruleTester.run(RULE_NAME, rule, {
225225
return <div>{count}</div>;
226226
}
227227
`,
228-
settings: {
229-
reactOptions: {
230-
importSource: "@pika/react",
231-
},
232-
},
233228
errors: [
234229
{
235230
messageId: "ENSURE_USE_MEMO_HAS_NON_EMPTY_DEPS",
236231
},
237232
],
233+
settings: {
234+
reactOptions: {
235+
importSource: "@pika/react",
236+
},
237+
},
238238
},
239239
{
240240
code: dedent`

packages/utilities/var/src/variable-find.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Variable } from "@typescript-eslint/scope-manager";
2-
import { ScopeType, type Scope } from "@typescript-eslint/scope-manager";
2+
import { type Scope, ScopeType } from "@typescript-eslint/scope-manager";
33
import { Function as F, Option as O } from "effect";
44
import { MutableRef as MutRef } from "effect";
55

0 commit comments

Comments
 (0)