[ESLint] Prefer named exports (#427)
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
export class CustomCache {
|
||||
private keyToResponseMap = new Map<string, unknown>();
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ import {
|
||||
import { OperationVariables } from '@apollo/client/core';
|
||||
import { useEffect, useRef, useState } from 'react';
|
||||
import { IRestClient, RestClient } from '@/lib/requests/client/RestClient.ts';
|
||||
import storage from '@/util/localStorage.tsx';
|
||||
import * as storage from '@/util/localStorage.tsx';
|
||||
import { GraphQLClient } from '@/lib/requests/client/GraphQLClient.ts';
|
||||
import {
|
||||
CategoryOrderBy,
|
||||
@@ -1795,5 +1795,4 @@ export class RequestManager {
|
||||
}
|
||||
}
|
||||
|
||||
const requestManager = new RequestManager();
|
||||
export default requestManager;
|
||||
export const requestManager = new RequestManager();
|
||||
|
||||
@@ -6,9 +6,8 @@
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
import storage from '@/util/localStorage.tsx';
|
||||
import * as storage from '@/util/localStorage.tsx';
|
||||
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
export abstract class BaseClient<Client, ClientConfig, Fetcher> {
|
||||
protected client!: Client;
|
||||
|
||||
|
||||
@@ -56,7 +56,6 @@ const typePolicies: StrictTypedTypePolicies = {
|
||||
};
|
||||
/* eslint-enable no-underscore-dangle */
|
||||
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
export class GraphQLClient extends BaseClient<
|
||||
ApolloClient<NormalizedCacheObject>,
|
||||
ApolloClientOptions<NormalizedCacheObject>,
|
||||
|
||||
Reference in New Issue
Block a user