Skip to content

Commit 35907be

Browse files
authored
Updated Prettier to v3.0.0 (#2949)
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
1 parent a062a59 commit 35907be

File tree

225 files changed

+1012
-1006
lines changed

Some content is hidden

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

225 files changed

+1012
-1006
lines changed

portal-ui/config-overrides.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ console.log("add babel plugin");
1515

1616
module.exports = override(
1717
process.env.USE_BABEL_PLUGIN_ISTANBUL &&
18-
addBabelPlugins("babel-plugin-istanbul")
18+
addBabelPlugins("babel-plugin-istanbul"),
1919
);

portal-ui/e2e/buckets.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ test("invalid bucket name", async ({ page }) => {
5454
await page.getByRole("button", { name: "View Bucket Naming Rules" }).click();
5555
await expect(
5656
page.getByText(
57-
"Bucket names can consist only of lowercase letters, numbers, dots (.), and hyphe"
58-
)
57+
"Bucket names can consist only of lowercase letters, numbers, dots (.), and hyphe",
58+
),
5959
).toBeTruthy();
6060
});

portal-ui/e2e/fixtures/baseFixture.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ export const test = baseTest.extend({
2929
await context.addInitScript(() =>
3030
window.addEventListener("beforeunload", () =>
3131
(window as any).collectIstanbulCoverage(
32-
JSON.stringify((window as any).__coverage__)
33-
)
34-
)
32+
JSON.stringify((window as any).__coverage__),
33+
),
34+
),
3535
);
3636
await fs.promises.mkdir(istanbulCLIOutput, { recursive: true });
3737
await context.exposeFunction(
@@ -41,18 +41,18 @@ export const test = baseTest.extend({
4141
fs.writeFileSync(
4242
path.join(
4343
istanbulCLIOutput,
44-
`playwright_coverage_${generateUUID()}.json`
44+
`playwright_coverage_${generateUUID()}.json`,
4545
),
46-
coverageJSON
46+
coverageJSON,
4747
);
48-
}
48+
},
4949
);
5050
await use(context);
5151
for (const page of context.pages()) {
5252
await page.evaluate(() =>
5353
(window as any).collectIstanbulCoverage(
54-
JSON.stringify((window as any).__coverage__)
55-
)
54+
JSON.stringify((window as any).__coverage__),
55+
),
5656
);
5757
}
5858
},

portal-ui/e2e/lifecycle.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ test.describe("Add Lifecycle Rule Modal in bucket settings tests for object vers
7777
await test.step("Clean up bucket and verify the clean up", async () => {
7878
await bucketSummaryPage.confirmDeleteBucket();
7979
const existBukCount = await bucketListPage.isBucketExist(
80-
versionedBucketName
80+
versionedBucketName,
8181
);
8282
await expect(existBukCount).toEqual(0);
8383
});
@@ -105,7 +105,7 @@ test.describe("Add Lifecycle Rule Modal in bucket settings tests for object vers
105105
await test.step("Clean up bucket and verify the clean up", async () => {
106106
await bucketSummaryPage.confirmDeleteBucket();
107107
const existBukCount = await bucketListPage.isBucketExist(
108-
nonVersionedBucketName
108+
nonVersionedBucketName,
109109
);
110110
await expect(existBukCount).toEqual(0);
111111
});

portal-ui/e2e/policies.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ test("Can create a policy", async ({ page }) => {
3939
await page
4040
.locator("#code_wrapper")
4141
.fill(
42-
'{\n "Version": "2012-10-17",\n "Statement": [\n {\n "Effect": "Allow",\n "Action": [\n "s3:*"\n ],\n "Resource": [\n "arn:aws:s3:::bucket1/*",\n "arn:aws:s3:::bucket2/*",\n "arn:aws:s3:::bucket3/*",\n "arn:aws:s3:::bucket4/*"\n ]\n },\n {\n "Effect": "Deny",\n "Action": [\n "s3:DeleteBucket"\n ],\n "Resource": [\n "arn:aws:s3:::*"\n ]\n }\n ]\n}\n'
42+
'{\n "Version": "2012-10-17",\n "Statement": [\n {\n "Effect": "Allow",\n "Action": [\n "s3:*"\n ],\n "Resource": [\n "arn:aws:s3:::bucket1/*",\n "arn:aws:s3:::bucket2/*",\n "arn:aws:s3:::bucket3/*",\n "arn:aws:s3:::bucket4/*"\n ]\n },\n {\n "Effect": "Deny",\n "Action": [\n "s3:DeleteBucket"\n ],\n "Resource": [\n "arn:aws:s3:::*"\n ]\n }\n ]\n}\n',
4343
);
4444
await page.getByRole("button", { name: "Save" }).click();
4545
await expect(page.getByRole("gridcell", { name: policyName })).toBeTruthy();

portal-ui/e2e/pom/BucketsListPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class BucketsListPage {
3030

3131
locateBucket(bucketName: string): Locator {
3232
const bucketRow = this.getLocator(
33-
`${this.bucketListItemPrefix}${bucketName}`
33+
`${this.bucketListItemPrefix}${bucketName}`,
3434
);
3535
return bucketRow;
3636
}

portal-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"customize-cra": "^1.0.0",
9090
"minio": "^7.1.1",
9191
"nyc": "^15.1.0",
92-
"prettier": "2.8.8",
92+
"prettier": "3.0.0",
9393
"react-app-rewire-hot-loader": "^2.0.1",
9494
"react-app-rewired": "^2.2.1",
9595
"react-scripts": "5.0.1",

portal-ui/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />

portal-ui/src/MainRouter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { baseUrl } from "./history";
2424
const Login = React.lazy(() => import("./screens/LoginPage/Login"));
2525
const Logout = React.lazy(() => import("./screens/LogoutPage/LogoutPage"));
2626
const LoginCallback = React.lazy(
27-
() => import("./screens/LoginPage/LoginCallback")
27+
() => import("./screens/LoginPage/LoginCallback"),
2828
);
2929

3030
const MainRouter = () => {

portal-ui/src/ProtectedRoutes.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ const ProtectedRoute = ({ Component }: ProtectedRouteProps) => {
3737
const userLoggedIn = useSelector((state: AppState) => state.system.loggedIn);
3838
const [componentLoading, setComponentLoading] = useState<boolean>(true);
3939
const sessionLoadingState = useSelector(
40-
(state: AppState) => state.console.sessionLoadingState
40+
(state: AppState) => state.console.sessionLoadingState,
4141
);
4242
const anonymousMode = useSelector(
43-
(state: AppState) => state.system.anonymousMode
43+
(state: AppState) => state.system.anonymousMode,
4444
);
4545
const { pathname = "" } = useLocation();
4646

@@ -87,7 +87,7 @@ const ProtectedRoute = ({ Component }: ProtectedRouteProps) => {
8787
(err: ErrorResponseHandler) => {
8888
// we will fail this call silently, but show it on the console
8989
console.error(`Error loading site replication status`, err);
90-
}
90+
},
9191
);
9292

9393
useEffect(() => {

0 commit comments

Comments
 (0)