From 0fd3acb6e6fef39ee7780d9de6358a3ccf64147b Mon Sep 17 00:00:00 2001 From: rektdeckard Date: Sat, 9 Sep 2023 01:04:58 -0600 Subject: [PATCH] chore(lib): add prettier and format things --- README.md | 2 +- package.json | 1 + src/math/matrix.ts | 2 +- src/math/transforms.ts | 1 - yarn.lock | 5 +++++ 5 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5f5a73e..404be96 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # kdim -A collection of interesting data structures and utility types for messing around with mathematical things in Node/JS/TS. No guarantees are made here as to the speed, efficiency, or correctness of tools providied! +A collection of interesting helpers, data structures, and utility types for messing around with mathematical things in Node/JS/TS. No guarantees are made here as to the speed, efficiency, or correctness of tools provided! [![NPM](https://img.shields.io/npm/v/kdim.svg?style=flat-square)](https://www.npmjs.com/package/kdim) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/kdim?style=flat-square) diff --git a/package.json b/package.json index 33fadf2..7813356 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,7 @@ "devDependencies": { "@types/node": "18.11.18", "@vitest/coverage-v8": "^0.34.1", + "prettier": "^3.0.2", "typescript": "^5.1.6", "vite": "^4.4.9", "vitest": "^0.34.1" diff --git a/src/math/matrix.ts b/src/math/matrix.ts index 6da413a..fed8821 100644 --- a/src/math/matrix.ts +++ b/src/math/matrix.ts @@ -8,7 +8,7 @@ export type MatrixOperand = type MatrixResult< M extends number, N extends number, - I extends MatrixOperand | number + I extends MatrixOperand | number, > = I extends number ? Matrix : I extends MatrixOperand diff --git a/src/math/transforms.ts b/src/math/transforms.ts index 6f8b782..48d99f3 100644 --- a/src/math/transforms.ts +++ b/src/math/transforms.ts @@ -164,7 +164,6 @@ export class Range { * if (n < -3) break; * console.log(n); * } - * * // 0 * // -1 * // -2 diff --git a/yarn.lock b/yarn.lock index 5cfedb0..7734a17 100644 --- a/yarn.lock +++ b/yarn.lock @@ -758,6 +758,11 @@ postcss@^8.4.27: picocolors "^1.0.0" source-map-js "^1.0.2" +prettier@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.2.tgz#78fcecd6d870551aa5547437cdae39d4701dca5b" + integrity sha512-o2YR9qtniXvwEZlOKbveKfDQVyqxbEIWn48Z8m3ZJjBjcCmUy3xZGIv+7AkaeuaTr6yPXJjwv07ZWlsWbEy1rQ== + pretty-format@^29.5.0: version "29.6.2" resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-29.6.2.tgz#3d5829261a8a4d89d8b9769064b29c50ed486a47"