🚨(lint) update file for prettier 3.0.0
Prettier 3.0.0 comes with new standards so we need to upgrade our files to comply with it.
This commit is contained in:
@@ -15,7 +15,7 @@ describe("<CunninghamProvider />", () => {
|
||||
render(
|
||||
<CunninghamProvider>
|
||||
<h1>Hi</h1>
|
||||
</CunninghamProvider>
|
||||
</CunninghamProvider>,
|
||||
);
|
||||
screen.getByRole("heading", { level: 1, name: "Hi" });
|
||||
});
|
||||
|
||||
@@ -37,7 +37,7 @@ export const SUPPORTED_LOCALES = Object.values(Locales);
|
||||
|
||||
const findTranslation = (
|
||||
key: string,
|
||||
locale: TranslationSet
|
||||
locale: TranslationSet,
|
||||
): string | undefined => {
|
||||
const [namespace, ...keys] = key.split(".");
|
||||
return keys.reduce((acc, subKey) => acc[subKey], (locale as any)[namespace]);
|
||||
@@ -54,7 +54,7 @@ export const CunninghamProvider = ({
|
||||
"fr-FR": frFR,
|
||||
...customLocales,
|
||||
}),
|
||||
[customLocales]
|
||||
[customLocales],
|
||||
);
|
||||
|
||||
const locale = useMemo(() => {
|
||||
@@ -80,7 +80,7 @@ export const CunninghamProvider = ({
|
||||
},
|
||||
currentLocale: locale,
|
||||
}),
|
||||
[currentLocale, locales]
|
||||
[currentLocale, locales],
|
||||
);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user