update frontend lib : eslint + typescript - #1815
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
@@ -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("_")
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -484,7 +484,6 @@ const createResourceButtonLabel = computed((): string => {
|
||||
return createSentenceForType(newResource.type);
|
||||
});
|
||||
|
||||
// eslint-disable-next-line class-methods-use-this
|
||||
const postRefreshQueries = (): InternalRefetchQueriesInclude => {
|
||||
return [
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user