fix: disable certain ESLint errors

This commit is contained in:
Anthony Berg 2023-06-24 02:09:19 +01:00
parent 8e0b0c3c03
commit bfdbe85010

View File

@ -13,7 +13,10 @@ export default {
}
},
head: () => {
// TODO Figure out the reason for these ESLint errors
// eslint-disable-next-line react-hooks/rules-of-hooks
const { asPath, defaultLocale, locale } = useRouter();
// eslint-disable-next-line react-hooks/rules-of-hooks
const { frontMatter } = useConfig();
const url = 'https://www.flightsimonlinux.com' + (defaultLocale === locale ? asPath : `/${locale}${asPath}`);