Skip to content

Commit

Permalink
Update dependency prettier to v3 (#619)
Browse files Browse the repository at this point in the history
* Update dependency prettier to v3

* Fix pretter

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Naoto Hamada <[email protected]>
  • Loading branch information
renovate[bot] and ham0215 authored Jan 21, 2024
1 parent e21cdbc commit db5237c
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 25 deletions.
18 changes: 9 additions & 9 deletions 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"local-ssl-proxy": "2.0.5",
"next-router-mock": "0.9.11",
"postcss-syntax": "0.36.2",
"prettier": "2.8.8",
"prettier": "3.2.4",
"ts-node": "10.9.1",
"typescript": "5.2.2"
},
Expand Down
2 changes: 1 addition & 1 deletion src/__test__/test-utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Wrapper = ({ currentUser = null, children }: Props) => {

const customRender = (
ui: ReactElement,
options?: RenderOptions & { currentUser: User }
options?: RenderOptions & { currentUser: User },
) => {
return render(ui, {
wrapper: (props) => Wrapper({ ...props, ...options }),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export function KeibaCard({ date, big, name, tag }: Props) {
const yen = big
? '3,000円'
: RULE_2022_TAGS.some((v) => v === tag)
? '1,000円'
: '2,000円';
? '1,000円'
: '2,000円';
return (
<>
<Styles.Back>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export function useNextRace({ tag }: { tag: string }) {
const now = new Date();
const today = new Date(now.getFullYear(), now.getMonth(), now.getDate());
const nextRace = KeibaCalendar.find(
(row) => row.tag === tag && today <= new Date(row.date)
(row) => row.tag === tag && today <= new Date(row.date),
);

return { nextRace } as const;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function useResultCelPresenter({ bets, results }: Props) {
const hasWinners = winners.length > 0;
const handleClickResults = useCallback(
() => setOpenResult(!openResult),
[openResult]
[openResult],
);

return {
Expand Down
2 changes: 1 addition & 1 deletion src/libs/features/List/components/Row/Row.presenter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function useRowPresenter({ id, tag, results }: Props) {

const handleClickToDetail = useCallback(
() => router.push({ pathname: `/keiba/${id}`, query: { tag } }),
[id, router, tag]
[id, router, tag],
);
const hasResults = results.length > 0;

Expand Down
2 changes: 1 addition & 1 deletion src/libs/features/PostKeiba/PostKeiba.facade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function usePostKeibaFacade({ keibaId, currentUser }: Props) {
});
router.push({ pathname: `/keiba/${keibaId}` });
},
[currentUser, keibaId, router]
[currentUser, keibaId, router],
);

return {
Expand Down
2 changes: 1 addition & 1 deletion src/libs/features/Profile/Profile.facade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function useProfileFacade({ currentUser }: Props) {
setCurrentUser(updatedUser);
router.push('/');
},
[currentUser, router, setCurrentUser]
[currentUser, router, setCurrentUser],
);

return {
Expand Down
2 changes: 1 addition & 1 deletion src/libs/features/Result/Result.facade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function useResultFacade({ keibaId, currentUser }: Props) {

router.push({ pathname: `/keiba/${keibaId}` });
},
[keibaId, router]
[keibaId, router],
);

return {
Expand Down
8 changes: 4 additions & 4 deletions src/libs/firestore/Keiba/Keiba.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export async function findKeibas(): Promise<Keiba[]> {
id: doc.id,
bets: doc.data().bets,
results: doc.data().results,
}))
})),
);
}

Expand All @@ -108,7 +108,7 @@ export async function findBets(keibaId: string): Promise<BetsResults | null> {

export async function findPosts(keibaId: string): Promise<Post[]> {
const ps = await getDocs(
collection(getFirestore(), 'keibas', keibaId, 'posts')
collection(getFirestore(), 'keibas', keibaId, 'posts'),
);
return Promise.all(
ps.docs.map(async (doc) => {
Expand All @@ -130,13 +130,13 @@ export async function findPosts(keibaId: string): Promise<Post[]> {
url,
createdAt: doc.data().createdAt.toDate(),
};
})
}),
);
}

export async function findPostText(
keibaId: string,
uid: string
uid: string,
): Promise<string | null> {
const p = await getDoc(doc(getFirestore(), 'keibas', keibaId, 'posts', uid));
const data = p.data();
Expand Down
2 changes: 1 addition & 1 deletion src/libs/firestore/User/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export async function findUsers(): Promise<User[]> {
url: doc.data().url,
enabled: doc.data().enabled,
};
})
}),
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/libs/ui/ExternalLink/ExternalLink.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('ExternalLink', () => {
const { asFragment } = render(
<ExternalLink href="/keiba" variant="body1">
keiba
</ExternalLink>
</ExternalLink>,
);
expect(asFragment()).toMatchSnapshot();
});
Expand Down

0 comments on commit db5237c

Please sign in to comment.