Skip to content

Commit

Permalink
Update prettier to latest version (#392)
Browse files Browse the repository at this point in the history
* update prettier and run it

* npm audit fix
  • Loading branch information
mdfleury-wbd authored Dec 17, 2024
1 parent 538715e commit 2f4c4b5
Show file tree
Hide file tree
Showing 105 changed files with 1,940 additions and 1,921 deletions.
54 changes: 29 additions & 25 deletions ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"markdownlint": "^0.36.1",
"markdownlint-cli2": "^0.15.0",
"miragejs": "^0.1.48",
"prettier": "^2.8.8",
"prettier": "^3.4.2",
"react-scripts": "^5.0.1",
"source-map-explorer": "^2.5.3"
},
Expand Down
8 changes: 4 additions & 4 deletions ui/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const AppRoutes = () => {
const { classes } = useStyles();
const dispatch: AppDispatch = useDispatch();
const currentUser = useSelector((state: RootState) =>
selectCurrentUser(state, "self")
selectCurrentUser(state, "self"),
);

// load current user in app and not in NavBar since it's global throughout the app
Expand Down Expand Up @@ -214,9 +214,9 @@ const ThemedApp = () => {
gradient: colors.gradient,
gradientText: colors.gradientText,
},
}
},
),
[prefersDarkMode, colors]
[prefersDarkMode, colors],
);

theme = React.useMemo(
Expand Down Expand Up @@ -279,7 +279,7 @@ const ThemedApp = () => {
},
},
}),
[theme, prefersDarkMode]
[theme, prefersDarkMode],
);

// TODO i18n: Date/Time pickers have changed the way they handle i18n
Expand Down
16 changes: 8 additions & 8 deletions ui/src/api/__tests__/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ describe("api client", () => {
expect(setTimeout).toHaveBeenCalledTimes(1);
expect(setTimeout).toHaveBeenLastCalledWith(
exportsForTesting._redirect, // should call redirect
APP_NOTIFICATION_DELAY // should set a delay
APP_NOTIFICATION_DELAY, // should set a delay
);
});
});
Expand Down Expand Up @@ -196,7 +196,7 @@ describe("api client", () => {
}),
url: `${data.vcsOrg}/${data.repo}`,
// don't check headers, baseUrl
})
}),
);
});

Expand Down Expand Up @@ -226,7 +226,7 @@ describe("api client", () => {
}),
url: `${data.vcsOrg}/${data.repo}`,
// don't check headers, baseUrl
})
}),
);
});

Expand Down Expand Up @@ -265,7 +265,7 @@ describe("api client", () => {
plugins: plugins,
}),
url: `${data.vcsOrg}/${data.repo}`,
})
}),
);
});

Expand All @@ -280,7 +280,7 @@ describe("api client", () => {

const categories = Object.keys(pluginCatalog)
.map((category) =>
category === "secret" ? `${category}` : `-${category}`
category === "secret" ? `${category}` : `-${category}`,
)
.sort();

Expand All @@ -293,7 +293,7 @@ describe("api client", () => {
plugins: ["-ghas_secrets", "-trufflehog"],
}),
url: `${data.vcsOrg}/${data.repo}`,
})
}),
);
});
});
Expand Down Expand Up @@ -324,7 +324,7 @@ describe("api client", () => {
it("getSbomScanById should GET a scan by id with format=sbom", async () => {
await client.getSbomScanById(
`/${mockScan.service}/${mockScan.repo}/${mockScan.scan_id}`,
{}
{},
);
for (const [
key,
Expand All @@ -337,7 +337,7 @@ describe("api client", () => {
expect.objectContaining({
url: `/${mockScan.service}/${mockScan.repo}/${mockScan.scan_id}`,
// don't check headers, baseUrl
})
}),
);
// ensure search parameter format=sbom passed
expect(mockRequest.mock.calls[0][0].params.has("format")).toBeTruthy();
Expand Down
Loading

0 comments on commit 2f4c4b5

Please sign in to comment.