update frontend lib : eslint + typescript - #1815

This commit is contained in:
Laurent GAY
2025-10-23 11:46:17 +02:00
committed by setop
parent bbf78fa198
commit c3e7f03f54
24 changed files with 1939 additions and 1339 deletions

View File

@@ -528,7 +528,6 @@ const handleErrors = (absintheErrors: AbsintheGraphQLErrors): void => {
}
};
// eslint-disable-next-line class-methods-use-this
const getInstanceHost = computed((): string => {
return MOBILIZON_INSTANCE_HOST;
});

View File

@@ -811,7 +811,6 @@ const eventOptions = computed({
onMounted(async () => {
observer.value = new IntersectionObserver(
(entries) => {
// eslint-disable-next-line no-restricted-syntax
for (const entry of entries) {
if (entry) {
showFixedNavbar.value = !entry.isIntersecting;
@@ -1344,7 +1343,6 @@ const timezones = computed((): Record<string, string[]> => {
prefix2: string,
suffix2: string
) => {
// eslint-disable-next-line no-param-reassign
(acc2[prefix2] = acc2[prefix2] || []).push(suffix2);
return acc2;
};
@@ -1357,7 +1355,6 @@ const timezones = computed((): Record<string, string[]> => {
);
});
// eslint-disable-next-line class-methods-use-this
const sanitizeTimezone = (timezone: string): string => {
return timezone
.split("_")

View File

@@ -463,7 +463,6 @@ onMounted(async () => {
observer.value = new IntersectionObserver(
(entries) => {
// eslint-disable-next-line no-restricted-syntax
for (const entry of entries) {
if (entry) {
loadComments.value = entry.isIntersecting || loadComments.value;

View File

@@ -578,8 +578,7 @@ onReverseGeocodeResult((result) => {
const fetchAndSaveCurrentLocationName = async ({
coords: { latitude, longitude, accuracy },
}: // eslint-disable-next-line no-undef
GeolocationPosition) => {
}: GeolocationPosition) => {
reverseGeoCodeInformation.latitude = latitude;
reverseGeoCodeInformation.longitude = longitude;
reverseGeoCodeInformation.accuracy = accuracy;

View File

@@ -484,7 +484,6 @@ const createResourceButtonLabel = computed((): string => {
return createSentenceForType(newResource.type);
});
// eslint-disable-next-line class-methods-use-this
const postRefreshQueries = (): InternalRefetchQueriesInclude => {
return [
{

View File

@@ -254,7 +254,6 @@ const timezones = computed((): Record<string, string[]> => {
prefix2: string,
suffix2: string
) => {
// eslint-disable-next-line no-param-reassign
(acc2[prefix2] = acc2[prefix2] || []).push(suffix2);
return acc2;
};