[ESLint] Prefer named exports (#427)

This commit is contained in:
schroda
2023-10-28 00:32:02 +02:00
committed by GitHub
parent 68e7b4b16d
commit 5a5b12a9e1
118 changed files with 319 additions and 470 deletions

View File

@@ -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>();

View File

@@ -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();

View File

@@ -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;

View File

@@ -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>,