Skip to content

Commit 3ad33e9

Browse files
authored
Merge pull request #4441 from erikgb/upgrade-prettier
build(deps-dev): Bump prettier from 2.6.2 to 3.4.2
2 parents 33f73e8 + ed07db0 commit 3ad33e9

File tree

90 files changed

+388
-388
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+388
-388
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
"jest-worker": "^29.7.0",
117117
"jsdom": "^16.6.0",
118118
"parcel": "^2.13.3",
119-
"prettier": "^2.6.2",
119+
"prettier": "^3.4.2",
120120
"process": "^0.11.10",
121121
"react-test-renderer": "^18.0.0",
122122
"ts-jest": "^29.2.5",

ui/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const App = () => {
9292
const { isFlagEnabled } = useFeatureFlags();
9393

9494
const isNewRuntimeEnabled = isFlagEnabled(
95-
"WEAVE_GITOPS_FEATURE_GITOPS_RUNTIME"
95+
"WEAVE_GITOPS_FEATURE_GITOPS_RUNTIME",
9696
);
9797

9898
const navItems: NavItem[] = [

ui/components/AlertListErrors.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const AlertListErrors: FC<{
6767
useEffect(() => {
6868
const fErrors = sortBy(
6969
uniqBy(errors, (error) => [error.clusterName, error.message].join()),
70-
[(v) => v.clusterName, (v) => v.namespace, (v) => v.message]
70+
[(v) => v.clusterName, (v) => v.namespace, (v) => v.message],
7171
);
7272
setFilteredErrors(fErrors);
7373
setIndex(0);

ui/components/AutomationDetail.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function AutomationDetail({
7878
name,
7979
clusterName,
8080
namespace,
81-
false
81+
false,
8282
);
8383

8484
const canaryStatus = createCanaryCondition(data?.objects);
@@ -155,7 +155,7 @@ function AutomationDetail({
155155
header={createYamlCommand(
156156
automation.type,
157157
automation.name,
158-
automation.namespace
158+
automation.namespace,
159159
)}
160160
/>
161161
);

ui/components/DataTable/DataTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function UnstyledDataTable({
108108
sorted = _.orderBy(
109109
filtered,
110110
[sortedItem.sortValue || sortedItem.value],
111-
[sortedItem.reverseSort ? "desc" : "asc"]
111+
[sortedItem.reverseSort ? "desc" : "asc"],
112112
);
113113
}
114114
return sorted;
@@ -135,7 +135,7 @@ function UnstyledDataTable({
135135

136136
const textFilters = _.filter(
137137
next.textFilters,
138-
(f) => !_.includes(chips, f)
138+
(f) => !_.includes(chips, f),
139139
);
140140

141141
let query = qs.parse(search);

ui/components/DataTable/__tests__/DataTable.test.tsx

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ describe("DataTable", () => {
6464
withContext(
6565
<DataTable fields={fields} rows={rows} />,
6666
"/applications",
67-
{}
68-
)
69-
)
67+
{},
68+
),
69+
),
7070
);
7171
const firstRow = screen.getAllByRole("row")[1];
7272
expect(firstRow.innerHTML).toMatch(/nginx/);
@@ -77,9 +77,9 @@ describe("DataTable", () => {
7777
withContext(
7878
<DataTable fields={fields} rows={rows} />,
7979
"/applications",
80-
{}
81-
)
82-
)
80+
{},
81+
),
82+
),
8383
);
8484

8585
const nameButton = screen.getByText("Name");
@@ -93,9 +93,9 @@ describe("DataTable", () => {
9393
withContext(
9494
<DataTable fields={fields} rows={rows} />,
9595
"/applications",
96-
{}
97-
)
98-
)
96+
{},
97+
),
98+
),
9999
);
100100
const nameButton = screen.getByText("Name");
101101
fireEvent.click(nameButton);
@@ -110,9 +110,9 @@ describe("DataTable", () => {
110110
withContext(
111111
<DataTable fields={fields} rows={[]} />,
112112
"/applications",
113-
{}
114-
)
115-
)
113+
{},
114+
),
115+
),
116116
);
117117
const firstRow = screen.getAllByRole("row")[1];
118118
expect(firstRow.innerHTML).toMatch(/No/);
@@ -142,9 +142,9 @@ describe("DataTable", () => {
142142
withContext(
143143
<DataTable fields={fields} rows={rows} />,
144144
"/applications",
145-
{}
146-
)
147-
)
145+
{},
146+
),
147+
),
148148
);
149149

150150
let firstRow = screen.getAllByRole("row")[1];
@@ -181,9 +181,9 @@ describe("DataTable", () => {
181181
withContext(
182182
<DataTable disableSort fields={fields} rows={rows} />,
183183
"/applications",
184-
{}
185-
)
186-
)
184+
{},
185+
),
186+
),
187187
);
188188

189189
const nameButton = screen.getByText("Name");
@@ -202,9 +202,9 @@ describe("DataTable", () => {
202202
withContext(
203203
<DataTable fields={fields} rows={rows} />,
204204
"/applications",
205-
{}
206-
)
207-
)
205+
{},
206+
),
207+
),
208208
)
209209
.toJSON();
210210
expect(tree).toMatchSnapshot();

ui/components/DataTable/__tests__/DataTableFilters.test.tsx

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ describe("DataTableFilters", () => {
187187
withContext(
188188
<DataTable fields={fields} rows={rows} filters={{}} />,
189189
"/applications",
190-
{}
191-
)
192-
)
190+
{},
191+
),
192+
),
193193
);
194194

195195
expect(screen.queryAllByText("slick")).toBeTruthy();
@@ -212,13 +212,13 @@ describe("DataTableFilters", () => {
212212
dialogOpen
213213
/>,
214214
"/applications",
215-
{}
216-
)
217-
)
215+
{},
216+
),
217+
),
218218
);
219219

220220
const checkbox1 = document.getElementById(
221-
`type${filterSeparator}foo`
221+
`type${filterSeparator}foo`,
222222
) as HTMLInputElement;
223223
fireEvent.click(checkbox1);
224224

@@ -232,7 +232,7 @@ describe("DataTableFilters", () => {
232232
expect(chip1).toBeTruthy();
233233

234234
const checkbox2 = document.getElementById(
235-
`type${filterSeparator}baz`
235+
`type${filterSeparator}baz`,
236236
) as HTMLInputElement;
237237
fireEvent.click(checkbox2);
238238

@@ -259,13 +259,13 @@ describe("DataTableFilters", () => {
259259
dialogOpen
260260
/>,
261261
"/applications",
262-
{}
263-
)
264-
)
262+
{},
263+
),
264+
),
265265
);
266266

267267
const checkbox1 = document.getElementById(
268-
`status${filterSeparator}Ready`
268+
`status${filterSeparator}Ready`,
269269
) as HTMLInputElement;
270270
fireEvent.click(checkbox1);
271271

@@ -278,7 +278,7 @@ describe("DataTableFilters", () => {
278278
expect(chip1).toBeTruthy();
279279

280280
const checkbox2 = document.getElementById(
281-
`status${filterSeparator}Suspended`
281+
`status${filterSeparator}Suspended`,
282282
) as HTMLInputElement;
283283
fireEvent.click(checkbox2);
284284

@@ -304,9 +304,9 @@ describe("DataTableFilters", () => {
304304
dialogOpen
305305
/>,
306306
"/applications",
307-
{}
308-
)
309-
)
307+
{},
308+
),
309+
),
310310
);
311311

312312
const checkbox1 = document.getElementById("status") as HTMLInputElement;
@@ -335,9 +335,9 @@ describe("DataTableFilters", () => {
335335
dialogOpen
336336
/>,
337337
"/applications",
338-
{}
339-
)
340-
)
338+
{},
339+
),
340+
),
341341
);
342342
const checkbox1 = document.getElementById("status") as HTMLInputElement;
343343
fireEvent.click(checkbox1);
@@ -365,13 +365,13 @@ describe("DataTableFilters", () => {
365365
dialogOpen
366366
/>,
367367
"/applications",
368-
{}
369-
)
370-
)
368+
{},
369+
),
370+
),
371371
);
372372

373373
const checkbox1 = document.getElementById(
374-
`type${filterSeparator}foo`
374+
`type${filterSeparator}foo`,
375375
) as HTMLInputElement;
376376
fireEvent.click(checkbox1);
377377

@@ -407,13 +407,13 @@ describe("DataTableFilters", () => {
407407
dialogOpen
408408
/>,
409409
"/applications",
410-
{}
411-
)
412-
)
410+
{},
411+
),
412+
),
413413
);
414414

415415
const checkbox1 = document.getElementById(
416-
`type${filterSeparator}foo`
416+
`type${filterSeparator}foo`,
417417
) as HTMLInputElement;
418418
fireEvent.click(checkbox1);
419419
const chip1 = screen.getByText(`type${filterSeparator}foo`);
@@ -423,7 +423,7 @@ describe("DataTableFilters", () => {
423423
expect(tableRows1).toHaveLength(2);
424424

425425
const checkbox2 = document.getElementById(
426-
`type${filterSeparator}baz`
426+
`type${filterSeparator}baz`,
427427
) as HTMLInputElement;
428428
fireEvent.click(checkbox2);
429429
const chip2 = screen.getByText(`type${filterSeparator}baz`);
@@ -456,9 +456,9 @@ describe("DataTableFilters", () => {
456456
dialogOpen
457457
/>,
458458
"/applications",
459-
{}
460-
)
461-
)
459+
{},
460+
),
461+
),
462462
);
463463

464464
const searchTerms = "my-criterion";
@@ -483,9 +483,9 @@ describe("DataTableFilters", () => {
483483
dialogOpen
484484
/>,
485485
"/applications",
486-
{}
487-
)
488-
)
486+
{},
487+
),
488+
),
489489
);
490490

491491
const searchTerms = "my-criterion";
@@ -513,9 +513,9 @@ describe("DataTableFilters", () => {
513513
dialogOpen
514514
/>,
515515
"/applications",
516-
{}
517-
)
518-
)
516+
{},
517+
),
518+
),
519519
);
520520

521521
const searchTerms = rows[0].name;
@@ -531,9 +531,9 @@ describe("DataTableFilters", () => {
531531
withContext(
532532
<DataTable fields={fields} rows={rows} filters={{}} dialogOpen />,
533533
"/applications",
534-
{}
535-
)
536-
)
534+
{},
535+
),
536+
),
537537
);
538538

539539
const term1 = "a";
@@ -552,9 +552,9 @@ describe("DataTableFilters", () => {
552552
withContext(
553553
<DataTable fields={fields} rows={rows} filters={{}} dialogOpen />,
554554
"/applications",
555-
{}
556-
)
557-
)
555+
{},
556+
),
557+
),
558558
);
559559

560560
const row = rows[0];
@@ -582,9 +582,9 @@ describe("DataTableFilters", () => {
582582
dialogOpen
583583
/>,
584584
"/applications" + search,
585-
{}
586-
)
587-
)
585+
{},
586+
),
587+
),
588588
);
589589
const tableRows = document.querySelectorAll("tbody tr");
590590
expect(tableRows).toHaveLength(1);

0 commit comments

Comments
 (0)