Skip to content

Commit

Permalink
refactor: npm run lint:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lego-technix committed Sep 24, 2024
1 parent 0ab08db commit ef92162
Show file tree
Hide file tree
Showing 36 changed files with 106 additions and 98 deletions.
6 changes: 3 additions & 3 deletions pix-pro/components/LocaleSwitcher.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ const { setLocaleCookie } = useLocaleCookie();
const { localeProperties, t } = useI18n();
const frLocale = availableLocales.find((l) => l.code === 'fr');
const enLocale = availableLocales.find((l) => l.code === 'en');
const frFrLocale = availableLocales.find((l) => l.code === 'fr-fr');
const frLocale = availableLocales.find(l => l.code === 'fr');
const enLocale = availableLocales.find(l => l.code === 'en');
const frFrLocale = availableLocales.find(l => l.code === 'fr-fr');
const buttonRef = ref(null);
const localesMenuRef = ref(null);
Expand Down
1 change: 1 addition & 0 deletions pix-pro/i18n.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { generateConfig } from '../shared/i18n.config';

const reachableLocales = [
{
code: 'en',
Expand Down
2 changes: 1 addition & 1 deletion pix-pro/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default async () => {
async 'nitro:config'(nitroConfig) {
if (process.env.NODE_ENV === 'test') return;
const routes = await getRoutesToGenerate({ locales: i18nConfig.locales });
// @ts-ignore
// @ts-expect-error TODO define the typing
nitroConfig.prerender.routes = routes;
},
},
Expand Down
10 changes: 5 additions & 5 deletions pix-site/components/LocaleSwitcher.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ const { setLocaleCookie } = useLocaleCookie();
const { localeProperties, t } = useI18n();
const frLocale = availableLocales.find((l) => l.code === 'fr');
const enLocale = availableLocales.find((l) => l.code === 'en');
const frFrLocale = availableLocales.find((l) => l.code === 'fr-fr');
const frBeLocale = availableLocales.find((l) => l.code === 'fr-be');
const nlBeLocale = availableLocales.find((l) => l.code === 'nl-be');
const frLocale = availableLocales.find(l => l.code === 'fr');
const enLocale = availableLocales.find(l => l.code === 'en');
const frFrLocale = availableLocales.find(l => l.code === 'fr-fr');
const frBeLocale = availableLocales.find(l => l.code === 'fr-be');
const nlBeLocale = availableLocales.find(l => l.code === 'nl-be');
const buttonRef = ref(null);
const localesMenuRef = ref(null);
Expand Down
1 change: 1 addition & 0 deletions pix-site/i18n.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { generateConfig } from '../shared/i18n.config';

const reachableLocales = [
{
code: 'en',
Expand Down
2 changes: 1 addition & 1 deletion pix-site/tests/e2e/components/locale-choice.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test.describe('component/locale-choice', () => {
expect(page.url()).toContain('/en');

const cookies = await page.context().cookies();
const localeCookie = cookies.find((c) => c.name == 'locale');
const localeCookie = cookies.find(c => c.name == 'locale');
await expect(localeCookie).toHaveProperty('value', 'en');
});
});
Expand Down
2 changes: 1 addition & 1 deletion pix-site/tests/e2e/components/locale-switcher.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ test.describe('component/locale-switcher', () => {
);

const cookies = await page.context().cookies();
const localeCookie = cookies.find((c) => c.name == 'locale');
const localeCookie = cookies.find(c => c.name == 'locale');
await expect(localeCookie).toHaveProperty('value', 'en');
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const availableLocales = [
];
mockNuxtImport('useI18n', () => {
return () => {
return { localeProperties, t: (str) => str };
return { localeProperties, t: str => str };
};
});
mockNuxtImport('useAppConfig', () => {
Expand Down
2 changes: 1 addition & 1 deletion shared/components/BurgerMenu/BurgerMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const isMenuOpen = ref(false);
const isLocaleSwitcherOpen = ref(false);
watch(isMenuOpen, () => {
if (isMenuOpen && isMenuOpen.value) {
if (isMenuOpen.value) {
document.body.style.position = 'fixed';
} else {
document.body.style.position = 'static';
Expand Down
2 changes: 1 addition & 1 deletion shared/components/BurgerMenu/BurgerMenuLocalesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const { localeProperties, t } = useI18n();
const availableLocales = runtimeConfig.public.availableLocales;
const frFrLocale = availableLocales.find((l) => l.code === 'fr-fr');
const frFrLocale = availableLocales.find(l => l.code === 'fr-fr');
const props = defineProps({
isLocaleSwitcherOpen: {
Expand Down
1 change: 1 addition & 0 deletions shared/components/HotNewsBanner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

<script setup>
import { ref } from 'vue';
const { client, filter } = usePrismic();
const { locale: i18nLocale } = useI18n();
Expand Down
12 changes: 6 additions & 6 deletions shared/components/NavigationSliceZone.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ const { data: mainNav } = await useAsyncData(async () => {
return nav[0].data.body;
});
const logos = mainNav.value.filter((block) => block.slice_type === 'logos_zone');
const logos = mainNav.value.filter(block => block.slice_type === 'logos_zone');
const actions = mainNav.value.filter((block) => block.slice_type === 'actions_zone');
const actions = mainNav.value.filter(block => block.slice_type === 'actions_zone');
const navigation = mainNav.value.filter((block) => block.slice_type === 'navigation_zone');
const navigation = mainNav.value.filter(block => block.slice_type === 'navigation_zone');
const burgerMenuLinks = () => {
const logosZone = mainNav.value.find((slice) => slice.slice_type === 'logos_zone') || { items: [] };
const navigationZone = mainNav.value.find((slice) => slice.slice_type === 'navigation_zone') || { items: [] };
const actionsZone = mainNav.value.find((slice) => slice.slice_type === 'actions_zone') || { items: [] };
const logosZone = mainNav.value.find(slice => slice.slice_type === 'logos_zone') || { items: [] };
const navigationZone = mainNav.value.find(slice => slice.slice_type === 'navigation_zone') || { items: [] };
const actionsZone = mainNav.value.find(slice => slice.slice_type === 'actions_zone') || { items: [] };
const reversedActionsZoneItems = [...actionsZone.items].reverse();
Expand Down
5 changes: 3 additions & 2 deletions shared/components/NewsItemPost.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

<script setup>
import { useDateFormat } from '@vueuse/core';
const { locale: i18nLocale } = useI18n();
const { customPrismicRichTextSerializer } = usePrismicRichTextSerializer();
Expand All @@ -39,8 +40,8 @@ const categoryLabel = props.newsItem.data.category.toLowerCase();
const date = props.newsItem.first_publication_date
? 'Preview'
: useDateFormat(props.newsItem.data.date, 'DD MMMM YYYY', {
locales: i18nLocale.value,
});
locales: i18nLocale.value,
});
</script>

<style lang="scss">
Expand Down
4 changes: 2 additions & 2 deletions shared/components/PixPrismicLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function removeHostIfCurrentSite(url) {
const parsedURL = new URL(url);
return parsedURL.pathname + parsedURL.search + parsedURL.hash;
} catch (e) {
} catch (e) { // eslint-disable-line @typescript-eslint/no-unused-vars
// relative URL
return url;
}
Expand All @@ -38,7 +38,7 @@ function isCurrentLocaleURL(url) {
}
function getPathLocale(path) {
const localeCodesWithoutDefault = $i18n.localeCodes.value.filter((code) => code !== $i18n.defaultLocale);
const localeCodesWithoutDefault = $i18n.localeCodes.value.filter(code => code !== $i18n.defaultLocale);
// When fr-fr, no other locale is available, so return undefined
if (localeCodesWithoutDefault.length === 0) return undefined;
Expand Down
2 changes: 1 addition & 1 deletion shared/components/SharedFooterSliceZone.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const { data: mainFooter } = await useAsyncData(async () => {
return footer[0].data.body;
});
const navigationGroups = mainFooter.value.filter((slice) => slice.slice_type === 'navigation_group');
const navigationGroups = mainFooter.value.filter(slice => slice.slice_type === 'navigation_group');
</script>

<style lang="scss">
Expand Down
10 changes: 5 additions & 5 deletions shared/components/slices/LatestNews.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ const { data: latestNews } = await useAsyncData(async () => {
/* Computed */
const shouldDisplayTitle = props.slice.primary.latest_news_should_display_title;
const hasTitle =
props.slice.primary.latest_news_title &&
props.slice.primary.latest_news_title.length &&
props.slice.primary.latest_news_title[0].text &&
props.slice.primary.latest_news_title[0].text.length;
const hasTitle
= props.slice.primary.latest_news_title
&& props.slice.primary.latest_news_title.length
&& props.slice.primary.latest_news_title[0].text
&& props.slice.primary.latest_news_title[0].text.length;
</script>

<style lang="scss">
Expand Down
16 changes: 8 additions & 8 deletions shared/components/slices/MultipleBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,18 @@ export default {
},
hasTitle() {
return (
this.slice.primary.block_title &&
this.slice.primary.block_title.length &&
this.slice.primary.block_title[0].text &&
this.slice.primary.block_title[0].text.length
this.slice.primary.block_title
&& this.slice.primary.block_title.length
&& this.slice.primary.block_title[0].text
&& this.slice.primary.block_title[0].text.length
);
},
hasSubtitle() {
return (
this.slice.primary.block_subtitle &&
this.slice.primary.block_subtitle.length &&
this.slice.primary.block_subtitle[0].text &&
this.slice.primary.block_subtitle[0].text.length
this.slice.primary.block_subtitle
&& this.slice.primary.block_subtitle.length
&& this.slice.primary.block_subtitle[0].text
&& this.slice.primary.block_subtitle[0].text.length
);
},
title() {
Expand Down
2 changes: 1 addition & 1 deletion shared/components/slices/NavigationZone.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const toggleDropdown = (dropdownIndex) => {
const subIsActive = (subNavigationLinks) => {
const paths = subNavigationLinks
.flatMap((subNavigationLink) => subNavigationLink.links.map((link) => link.url))
.flatMap(subNavigationLink => subNavigationLink.links.map(link => link.url))
.map((subNavigationLink) => {
const splittedLink = subNavigationLink.split('/');
const linkIndex = splittedLink.length - 1;
Expand Down
1 change: 1 addition & 0 deletions shared/composables/useLocaleCookie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default function useLocaleCookie() {
sameSite: 'strict',
});

// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
function setLocaleCookie(locale: string, callback?: Function): void {
const localeCanonicalName = Intl.getCanonicalLocales(locale)?.[0];
if (previousLocaleCookie.value) {
Expand Down
52 changes: 26 additions & 26 deletions shared/composables/useMainNavigationLinks.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
type NavigationZoneItem = {
afterIcon: string | null;
beforeIcon: string | null;
alternativeTextForBeforeIcon: Array<{ text: string }>;
alternativeTextForAfterIcon: Array<{ text: string }>;
categoryName: Array<{ text: string }>;
descriptionCategoryTitle: Array<{ text: string }>;
descriptionCategoryText: Array<{ text: string }>;
menuLink: { url: string };
menuName: Array<{ text: string }>;
menuSectionTitle: Array<{ text: string }>;
separator: boolean;
afterIcon: string | null
beforeIcon: string | null
alternativeTextForBeforeIcon: Array<{ text: string }>
alternativeTextForAfterIcon: Array<{ text: string }>
categoryName: Array<{ text: string }>
descriptionCategoryTitle: Array<{ text: string }>
descriptionCategoryText: Array<{ text: string }>
menuLink: { url: string }
menuName: Array<{ text: string }>
menuSectionTitle: Array<{ text: string }>
separator: boolean
};

type Section = {
title: string;
links: Array<{ name: string; url: string }>;
title: string
links: Array<{ name: string, url: string }>
};

type FormattedMenuItem = {
name: string;
afterIcon: string | null;
beforeIcon: string | null;
alternativeTextForAfterIcon?: string;
alternativeTextForBeforeIcon?: string;
name: string
afterIcon: string | null
beforeIcon: string | null
alternativeTextForAfterIcon?: string
alternativeTextForBeforeIcon?: string
description?: {
title: string;
text: string;
};
sections: Array<Section>;
separator: boolean;
url?: string;
title: string
text: string
}
sections: Array<Section>
separator: boolean
url?: string
};

export default function useMainNavigationLinks(
Expand Down Expand Up @@ -59,8 +59,8 @@ export default function useMainNavigationLinks(

const currentCategoryName = _getTextFromArray(currentItem.categoryName);
const lastCategoryIndex = formattedData.length - 1;
const isDifferentCategory =
lastCategoryIndex === -1 || formattedData[lastCategoryIndex].name !== currentCategoryName;
const isDifferentCategory
= lastCategoryIndex === -1 || formattedData[lastCategoryIndex].name !== currentCategoryName;

if (isDifferentCategory) {
formattedData.push(
Expand Down
1 change: 1 addition & 0 deletions shared/composables/usePrismicRichTextSerializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export default function usePrismicRichTextSerializer() {
const localeRoute = useLocaleRoute();

const customPrismicRichTextSerializer = {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
hyperlink: ({ node }: any) => {
if (node.type === 'hyperlink' && node.data.link_type === 'Document') {
const localeUrl = localeRoute(`/${node.data.uid}`, node.data.lang);
Expand Down
4 changes: 2 additions & 2 deletions shared/i18n.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ export function generateConfig(reachableLocales) {
const config = { ...baseConfig };

if (process.env.SITE_DOMAIN === 'FR') {
config.locales = reachableLocales.filter((locale) => locale.code === 'fr-fr');
config.locales = reachableLocales.filter(locale => locale.code === 'fr-fr');
}

if (process.env.SITE_DOMAIN === 'ORG') {
config.locales = reachableLocales.filter((locale) => locale.code !== 'fr-fr');
config.locales = reachableLocales.filter(locale => locale.code !== 'fr-fr');
config.defaultLocale = null;
config.strategy = 'prefix';
}
Expand Down
2 changes: 1 addition & 1 deletion shared/pages/locale-home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const { data: indexContent } = await useAsyncData(async () => {
lang: i18nLocale.value,
});
const currentSiteIndexPage = indexPages.find((page) => page.tags.includes(appConfig.site));
const currentSiteIndexPage = indexPages.find(page => page.tags.includes(appConfig.site));
return currentSiteIndexPage;
});
Expand Down
4 changes: 2 additions & 2 deletions shared/pages/support/[persona-sub-list].vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ const { data } = await useAsyncData(async () => {
});
const currentPersonaChildren = currentPersonaData.items
.filter((item) => item.sub_persona.id)
.map((persona) => persona.sub_persona.id);
.filter(item => item.sub_persona.id)
.map(persona => persona.sub_persona.id);
const queryChildrenPersona = await client.getByIDs(currentPersonaChildren, { lang: i18nLocale.value });
Expand Down
2 changes: 1 addition & 1 deletion shared/pages/support/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const { data } = await useAsyncData(async () => {
try {
const supportPage = await client.getSingle('personas_list', { lang: i18nLocale.value });
const mainPersonas = supportPage?.data.body.map((persona) => persona.primary);
const mainPersonas = supportPage?.data.body.map(persona => persona.primary);
return {
supportPageData: supportPage?.data,
Expand Down
6 changes: 3 additions & 3 deletions shared/services/easiware.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export function create(params) {
<div id='easiformWaiting'>
</div>
`;
targetElementForForm.innerHTML +=
`<style type='text/css'>
targetElementForForm.innerHTML
+= `<style type='text/css'>
:root {
--pix-neutral-900: #122647;
--pix-neutral-60: #5E6C84;
Expand Down Expand Up @@ -205,7 +205,7 @@ font-weight: 500;
background-position: center center;
background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPgo8c3ZnIHdpZHRoPSI0MHB4IiBoZWlnaHQ9IjQwcHgiIHZpZXdCb3g9IjAgMCA0MCA0MCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bWw6c3BhY2U9InByZXNlcnZlIiBzdHlsZT0iZmlsbC1ydWxlOmV2ZW5vZGQ7Y2xpcC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEuNDE0MjE7IiB4PSIwcHgiIHk9IjBweCI+CiAgICA8ZGVmcz4KICAgICAgICA8c3R5bGUgdHlwZT0idGV4dC9jc3MiPjwhW0NEQVRBWwogICAgICAgICAgICBALXdlYmtpdC1rZXlmcmFtZXMgc3BpbiB7CiAgICAgICAgICAgICAgZnJvbSB7CiAgICAgICAgICAgICAgICAtd2Via2l0LXRyYW5zZm9ybTogcm90YXRlKDBkZWcpCiAgICAgICAgICAgICAgfQogICAgICAgICAgICAgIHRvIHsKICAgICAgICAgICAgICAgIC13ZWJraXQtdHJhbnNmb3JtOiByb3RhdGUoLTM1OWRlZykKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgQGtleWZyYW1lcyBzcGluIHsKICAgICAgICAgICAgICBmcm9tIHsKICAgICAgICAgICAgICAgIHRyYW5zZm9ybTogcm90YXRlKDBkZWcpCiAgICAgICAgICAgICAgfQogICAgICAgICAgICAgIHRvIHsKICAgICAgICAgICAgICAgIHRyYW5zZm9ybTogcm90YXRlKC0zNTlkZWcpCiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICAgIHN2ZyB7CiAgICAgICAgICAgICAgICAtd2Via2l0LXRyYW5zZm9ybS1vcmlnaW46IDUwJSA1MCU7CiAgICAgICAgICAgICAgICAtd2Via2l0LWFuaW1hdGlvbjogc3BpbiAxLjVzIGxpbmVhciBpbmZpbml0ZTsKICAgICAgICAgICAgICAgIC13ZWJraXQtYmFja2ZhY2UtdmlzaWJpbGl0eTogaGlkZGVuOwogICAgICAgICAgICAgICAgYW5pbWF0aW9uOiBzcGluIDEuNXMgbGluZWFyIGluZmluaXRlOwogICAgICAgICAgICB9CiAgICAgICAgXV0+PC9zdHlsZT4KICAgIDwvZGVmcz4KICAgIDxnIGlkPSJvdXRlciI+CiAgICAgICAgPGc+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0yMCwwQzIyLjIwNTgsMCAyMy45OTM5LDEuNzg4MTMgMjMuOTkzOSwzLjk5MzlDMjMuOTkzOSw2LjE5OTY4IDIyLjIwNTgsNy45ODc4MSAyMCw3Ljk4NzgxQzE3Ljc5NDIsNy45ODc4MSAxNi4wMDYxLDYuMTk5NjggMTYuMDA2MSwzLjk5MzlDMTYuMDA2MSwxLjc4ODEzIDE3Ljc5ND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uMDEyMiwxNy43OTQyIDMzLjgwMDMsMTYuMDA2MSAzNi4wMDYxLDE2LjAwNjFaIiBzdHlsZT0iZmlsbDpyZ2IoNzQsNzQsNzQpOyIvPgogICAgICAgIDwvZz4KICAgICAgICA8Zz4KICAgICAgICAgICAgPHBhdGggZD0iTTI4LjQ5MzksNS44NTc4NkMzMC4wNTM2LDQuMjk4MTUgMzIuNTgyNCw0LjI5ODE1IDM0LjE0MjEsNS44NTc4NkMzNS43MDE5LDcuNDE3NTggMzUuNzAxOSw5Ljk0NjM4IDM0LjE0MjEsMTEuNTA2MUMzMi41ODI0LDEzLjA2NTggMzAuMDUzNiwxMy4wNjU4IDI4LjQ5MzksMTEuNTA2MUMyNi45MzQyLDkuOTQ2MzggMjYuOTM0Miw3LjQxNzU4IDI4LjQ5MzksNS44NTc4NloiIHN0eWxlPSJmaWxsOnJnYig1MCw1MCw1MCk7Ii8+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4K');
}
</style>` + '</div>';
</style>` + '</div>';

const asyncScript = document.createElement('script');
asyncScript.type = 'text/javascript';
Expand Down
2 changes: 1 addition & 1 deletion shared/services/filter-nuxt-pages.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export function filterNuxtPages(pages) {
if (process.env.SITE_DOMAIN === 'FR') {
const indexPage = pages.find((page) => page.name === 'index' && page.path === '/');
const indexPage = pages.find(page => page.name === 'index' && page.path === '/');
pages.splice(pages.indexOf(indexPage), 1);
}
}
Loading

0 comments on commit ef92162

Please sign in to comment.