[ESLint] Prefer named exports (#427)
This commit is contained in:
@@ -11,7 +11,7 @@ import { Droppable, DroppableProps } from 'react-beautiful-dnd';
|
||||
|
||||
// issue: https://github.com/atlassian/react-beautiful-dnd/issues/2399
|
||||
// credit for fix: https://github.com/atlassian/react-beautiful-dnd/issues/2399#issuecomment-1175638194
|
||||
export default function StrictModeDroppable({ children, ...props }: DroppableProps) {
|
||||
export function StrictModeDroppable({ children, ...props }: DroppableProps) {
|
||||
const [enabled, setEnabled] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
import gql from 'graphql-tag';
|
||||
import { WEBUI_UPDATE_STATUS } from '@/lib/graphql/Fragments';
|
||||
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
export const UPDATE_WEBUI = gql`
|
||||
${WEBUI_UPDATE_STATUS}
|
||||
mutation UPDATE_WEBUI($input: WebUIUpdateInput = {}) {
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
import gql from 'graphql-tag';
|
||||
import { FULL_DOWNLOAD_STATUS } from '@/lib/graphql/Fragments';
|
||||
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
export const GET_DOWNLOAD_STATUS = gql`
|
||||
${FULL_DOWNLOAD_STATUS}
|
||||
query GET_DOWNLOAD_STATUS {
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
import gql from 'graphql-tag';
|
||||
import { SERVER_SETTINGS } from '@/lib/graphql/Fragments';
|
||||
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
export const GET_SERVER_SETTINGS = gql`
|
||||
${SERVER_SETTINGS}
|
||||
query GET_SERVER_SETTINGS {
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
import gql from 'graphql-tag';
|
||||
import { FULL_UPDATER_STATUS } from '@/lib/graphql/Fragments';
|
||||
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
export const GET_UPDATE_STATUS = gql`
|
||||
${FULL_UPDATER_STATUS}
|
||||
query GET_UPDATE_STATUS {
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
import gql from 'graphql-tag';
|
||||
import { FULL_DOWNLOAD_STATUS } from '@/lib/graphql/Fragments';
|
||||
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
export const DOWNLOAD_STATUS_SUBSCRIPTION = gql`
|
||||
${FULL_DOWNLOAD_STATUS}
|
||||
subscription DOWNLOAD_STATUS_SUBSCRIPTION {
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
import gql from 'graphql-tag';
|
||||
import { WEBUI_UPDATE_STATUS } from '@/lib/graphql/Fragments';
|
||||
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
export const WEBUI_UPDATE_SUBSCRIPTION = gql`
|
||||
${WEBUI_UPDATE_STATUS}
|
||||
subscription WEBUI_UPDATE_SUBSCRIPTION {
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
import gql from 'graphql-tag';
|
||||
import { FULL_UPDATER_STATUS } from '@/lib/graphql/Fragments';
|
||||
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
export const UPDATER_SUBSCRIPTION = gql`
|
||||
${FULL_UPDATER_STATUS}
|
||||
subscription UPDATER_SUBSCRIPTION {
|
||||
|
||||
@@ -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