From 6ec3093801f290fdf0db488cf2b5c86485c5d6b2 Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Wed, 12 Jun 2024 11:35:49 +0900 Subject: [PATCH] style: Format some files (#33) --- package.json | 2 +- src/array/uniqBy.ts | 2 +- src/array/uniqWith.ts | 2 +- tsup.config.ts | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 8f2f82460..c6a6748c3 100644 --- a/package.json +++ b/package.json @@ -130,4 +130,4 @@ "lint": "eslint ./src --ext .ts", "format": "prettier --write ." } -} \ No newline at end of file +} diff --git a/src/array/uniqBy.ts b/src/array/uniqBy.ts index 00b3ddc89..6b7f61b63 100644 --- a/src/array/uniqBy.ts +++ b/src/array/uniqBy.ts @@ -8,7 +8,7 @@ import { uniqWith } from './uniqWith'; * @param {T[]} arr - The array to process. * @param {(item: T) => U} converter - The function used to convert the array elements. * @returns {T[]} A new array containing only the unique elements from the original array, based on the values returned by the converter function. - * + * * @example * ```ts * uniqBy([1.2, 1.5, 2.1, 3.2, 5.7, 5.3, 7.19], Math.floor); diff --git a/src/array/uniqWith.ts b/src/array/uniqWith.ts index 00236f8d1..090651a86 100644 --- a/src/array/uniqWith.ts +++ b/src/array/uniqWith.ts @@ -6,7 +6,7 @@ * @param {T[]} arr - The array to process. * @param {(item1: T, item2: T) => boolean} areItemsEqual - The function used to compare the array elements. * @returns {T[]} A new array containing only the unique elements from the original array, based on the values returned by the comparator function. - * + * * @example * ```ts * uniqWith([1.2, 1.5, 2.1, 3.2, 5.7, 5.3, 7.19], (a, b) => Math.abs(a - b) < 1); diff --git a/tsup.config.ts b/tsup.config.ts index 77fb47ca5..b77c30cc4 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -1,4 +1,4 @@ -import { defineConfig } from 'tsup' +import { defineConfig } from 'tsup'; export default defineConfig({ format: ['cjs', 'esm'], @@ -6,4 +6,4 @@ export default defineConfig({ sourcemap: true, dts: true, clean: true, -}) +});