force absolute import path (#223)

* Add "no-relative-import-paths" eslint plugin

* Add "no-relative-import-paths" eslint plugin - Fix imports
This commit is contained in:
Daniel
2023-02-05 16:15:20 +01:00
committed by GitHub
parent 144b4cdb49
commit 2eeea41a45
32 changed files with 63 additions and 49 deletions

View File

@@ -7,7 +7,7 @@
import axios from 'axios';
import useSWR, { SWRConfiguration, SWRResponse } from 'swr';
import storage from './localStorage';
import storage from 'util/localStorage';
const { hostname, port, protocol } = window.location;

View File

@@ -7,7 +7,7 @@
*/
import { mutate } from 'swr';
import client from './client';
import client from 'util/client';
const APP_METADATA_KEY_PREFIX = 'webUI_';

View File

@@ -7,7 +7,7 @@
*/
import { getMetadataFrom, requestUpdateMangaMetadata, requestUpdateServerMetadata } from 'util/metadata';
import { useQuery } from './client';
import { useQuery } from 'util/client';
export const getDefaultSettings = (forceUndefined: boolean = false) => ({
staticNav: forceUndefined ? undefined : false,

View File

@@ -13,7 +13,7 @@ import React, {
Reducer,
useCallback,
} from 'react';
import storage from './localStorage';
import storage from 'util/localStorage';
// eslint-disable-next-line max-len
export default function useLocalStorage<T>(