From d746248de31e0db4b50e11f0d9232f099ef59124 Mon Sep 17 00:00:00 2001 From: Hasan Genc Date: Wed, 30 Dec 2020 14:23:17 +0300 Subject: [PATCH] Format code --- __tests__/carousel.spec.tsx | 1 - src/hooks/index.ts | 12 ++++----- src/styles/slider/styles.module.css.d.ts | 16 +++++------ src/styles/styles.module.css.d.ts | 34 ++++++++++++------------ 4 files changed, 31 insertions(+), 32 deletions(-) diff --git a/__tests__/carousel.spec.tsx b/__tests__/carousel.spec.tsx index ec4d017..84232d7 100644 --- a/__tests__/carousel.spec.tsx +++ b/__tests__/carousel.spec.tsx @@ -4,7 +4,6 @@ import { Carousel } from '../src/components/carousel'; import { defaultProps } from '../src/components/carousel/defaultProps'; import { carouselItemNodes, dynamicCarouselItemNodes } from './__fixtures__/nodes'; import * as helpers from '../src/helpers'; -import { SlideDirection } from '../src/types/carousel'; import * as hooks from '../src/hooks'; describe('', () => { diff --git a/src/hooks/index.ts b/src/hooks/index.ts index 09a76b5..206c393 100644 --- a/src/hooks/index.ts +++ b/src/hooks/index.ts @@ -15,9 +15,9 @@ export const useWindowWidthChange = (callBack: (changed: number) => any) => { }; export const usePrevious = (value: T) => { - const ref = useRef(); - useEffect(() => { - ref.current = value; - }); - return ref.current; -} + const ref = useRef(); + useEffect(() => { + ref.current = value; + }); + return ref.current; +}; diff --git a/src/styles/slider/styles.module.css.d.ts b/src/styles/slider/styles.module.css.d.ts index 0fb4e6f..2966e8b 100644 --- a/src/styles/slider/styles.module.css.d.ts +++ b/src/styles/slider/styles.module.css.d.ts @@ -1,10 +1,10 @@ -export const sliderBase: string -export const slider: string -export const sliding: string +export const sliderBase: string; +export const slider: string; +export const sliding: string; interface Namespace { - "sliderBase": string, - "slider": string, - "sliding": string, + sliderBase: string; + slider: string; + sliding: string; } -declare const stylesModule: Namespace -export default stylesModule +declare const stylesModule: Namespace; +export default stylesModule; diff --git a/src/styles/styles.module.css.d.ts b/src/styles/styles.module.css.d.ts index 7ed2c12..08bed51 100644 --- a/src/styles/styles.module.css.d.ts +++ b/src/styles/styles.module.css.d.ts @@ -1,19 +1,19 @@ -export const carouselBase: string -export const itemProvider: string -export const itemContainer: string -export const itemTracker: string -export const carouselArrow: string +export const carouselBase: string; +export const itemProvider: string; +export const itemContainer: string; +export const itemTracker: string; +export const carouselArrow: string; interface Namespace { - "carouselBase": string, - "carousel-base": string, - "itemProvider": string, - "item-provider": string, - "itemContainer": string, - "item-container": string, - "itemTracker": string, - "item-tracker": string, - "carouselArrow": string, - "carousel-arrow": string, + carouselBase: string; + 'carousel-base': string; + itemProvider: string; + 'item-provider': string; + itemContainer: string; + 'item-container': string; + itemTracker: string; + 'item-tracker': string; + carouselArrow: string; + 'carousel-arrow': string; } -declare const stylesModule: Namespace -export default stylesModule +declare const stylesModule: Namespace; +export default stylesModule;