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:
@@ -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;
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
import { mutate } from 'swr';
|
||||
import client from './client';
|
||||
import client from 'util/client';
|
||||
|
||||
const APP_METADATA_KEY_PREFIX = 'webUI_';
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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>(
|
||||
|
||||
Reference in New Issue
Block a user