Skip to content

Commit bde9593

Browse files
Format frontend
1 parent 3e0367e commit bde9593

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

app/web/features/dashboard/DashboardMyPublicTrips.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default function DashboardMyPublicTrips() {
7272

7373
useEffect(() => {
7474
updateScrollState();
75-
// eslint-disable-next-line react-hooks/exhaustive-deps
75+
7676
}, [activeTrips.length, isLoading]);
7777

7878
const scroll = (dir: 1 | -1) => {

app/web/features/profile/hooks/useUpdateUserProfile.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe("updateUserProfile action", () => {
4444
pronouns,
4545
thingsILike,
4646
} = defaultUser;
47-
/* eslint-disable sort-keys */
47+
4848
const newUserProfileData: UpdateUserProfileData = {
4949
// Unchanged data
5050
aboutMe,
@@ -82,7 +82,7 @@ describe("updateUserProfile action", () => {
8282
],
8383
},
8484
};
85-
/* eslint-enable sort-keys */
85+
8686
updateProfileMock.mockResolvedValue(new Empty());
8787

8888
const { result } = renderHook(() => useUpdateUserProfile(), {

app/web/features/publicTrips/PublicTripsOverview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default function PublicTripsOverview({
7777

7878
useEffect(() => {
7979
updateScrollState();
80-
// eslint-disable-next-line react-hooks/exhaustive-deps
80+
8181
}, [trips.length, isLoading]);
8282

8383
const scroll = (dir: 1 | -1) => {

app/web/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable @typescript-eslint/no-empty-interface */
1+
22
declare module "@mui/private-theming" {
33
import type { Theme } from "@mui/material/styles";
44

app/web/service/client.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe("AuthInterceptor", () => {
1313
it("calls a set UnauthenticatedErrorHandler on unauthenticated error", async () => {
1414
const errorHandler = jest.fn();
1515
const invokerMock = jest.fn(() => {
16-
throw { code: StatusCode.UNAUTHENTICATED, message: "Unauthenticated" }; //eslint-disable-line no-throw-literal
16+
throw { code: StatusCode.UNAUTHENTICATED, message: "Unauthenticated" };
1717
});
1818
const interceptor = new AuthInterceptor();
1919
setUnauthenticatedErrorHandler(errorHandler);
@@ -24,7 +24,7 @@ describe("AuthInterceptor", () => {
2424
it("throws on an error that isn't an unauthenticated error", async () => {
2525
const errorHandler = jest.fn();
2626
const invokerMock = jest.fn(() => {
27-
throw { code: StatusCode.NOT_FOUND, message: "Not found" }; //eslint-disable-line no-throw-literal
27+
throw { code: StatusCode.NOT_FOUND, message: "Not found" };
2828
});
2929
const interceptor = new AuthInterceptor();
3030
setUnauthenticatedErrorHandler(errorHandler);

app/web/test/setupTests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ global.ResizeObserver = class ResizeObserver {
106106
};
107107

108108
declare global {
109-
/* eslint-disable no-var */ // Disable the rule for this block
109+
// Disable the rule for this block
110110
var defaultUser: typeof user;
111111
var testKit: ReturnType<typeof sentryTestkit>["testkit"];
112-
/* eslint-enable no-var */ // Re-enable the rule
112+
// Re-enable the rule
113113
}
114114

115115
function createWebStorageMock() {

0 commit comments

Comments
 (0)