From a1193cee4787f4fb0fdaf66f33a6e3c365a7c87a Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Sun, 16 May 2021 17:28:51 +0300 Subject: [PATCH] style: rename files --- src/{client-hook.ts => client_hook.ts} | 2 +- src/index.ts | 8 ++++---- src/{lazy-request-hook.ts => lazy_request_hook.ts} | 4 ++-- src/{request-context.tsx => request_context.tsx} | 0 src/{request-hook.ts => request_hook.ts} | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) rename src/{client-hook.ts => client_hook.ts} (64%) rename src/{lazy-request-hook.ts => lazy_request_hook.ts} (98%) rename src/{request-context.tsx => request_context.tsx} (100%) rename src/{request-hook.ts => request_hook.ts} (97%) diff --git a/src/client-hook.ts b/src/client_hook.ts similarity index 64% rename from src/client-hook.ts rename to src/client_hook.ts index c94850c..a93b142 100644 --- a/src/client-hook.ts +++ b/src/client_hook.ts @@ -1,4 +1,4 @@ -import { useRequestContext } from './request-context'; +import { useRequestContext } from './request_context'; export function useClient() { const { client } = useRequestContext(); diff --git a/src/index.ts b/src/index.ts index de1a6dd..6ce9ce6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,7 @@ export * from './endpoint'; export * from './client'; -export * from './client-hook'; -export * from './lazy-request-hook'; -export * from './request-hook'; -export * from './request-context'; +export * from './client_hook'; +export * from './lazy_request_hook'; +export * from './request_hook'; +export * from './request_context'; export * from './reducer'; diff --git a/src/lazy-request-hook.ts b/src/lazy_request_hook.ts similarity index 98% rename from src/lazy-request-hook.ts rename to src/lazy_request_hook.ts index 96e9a7b..5508782 100644 --- a/src/lazy-request-hook.ts +++ b/src/lazy_request_hook.ts @@ -1,10 +1,10 @@ import React from 'react'; import invariant from 'tiny-invariant'; import isEqual from 'lodash.isequal'; -import { useClient } from './client-hook'; +import { useClient } from './client_hook'; import { AnyEndpoint, ExtractEndpointParams, ExtractEndpointResponse, ExtractEndpointVariables } from './endpoint'; import { PublicRequestState, RequestReducer, requestReducer } from './reducer'; -import { useRequestContext } from './request-context'; +import { useRequestContext } from './request_context'; import { ClientResponse } from './client'; import { isFunction } from './misc'; diff --git a/src/request-context.tsx b/src/request_context.tsx similarity index 100% rename from src/request-context.tsx rename to src/request_context.tsx diff --git a/src/request-hook.ts b/src/request_hook.ts similarity index 97% rename from src/request-hook.ts rename to src/request_hook.ts index a66ed8a..485f223 100644 --- a/src/request-hook.ts +++ b/src/request_hook.ts @@ -1,7 +1,7 @@ import React from 'react'; import invariant from 'tiny-invariant'; import { AnyEndpoint, Method } from './endpoint'; -import { LazyRequestConfigFromEndpoint, useLazyRequest } from './lazy-request-hook'; +import { LazyRequestConfigFromEndpoint, useLazyRequest } from './lazy_request_hook'; export type RequestConfigFromEndpoint = Readonly< LazyRequestConfigFromEndpoint