From 24ee32b561775595acec4d54d0b367e09d80ac83 Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Mon, 18 Sep 2023 20:26:57 +0530 Subject: [PATCH] feat: setup prettier --- package.json | 2 ++ pnpm-lock.yaml | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/package.json b/package.json index d1fea4a..407f3f4 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "main": "index.js", "scripts": { "build": "swc ./src/api.ts -o dist/api.js", + "lint": "prettier --write ./src/*", "test": "jest", "doc": "jsdoc ./src/api.js" }, @@ -22,6 +23,7 @@ "jest-environment-jsdom": "^29.7.0", "jsdoc": "^4.0.2", "jsdom": "^22.1.0", + "prettier": "3.0.3", "ts-jest": "^29.1.1", "ts-node": "^10.9.1", "typescript": "^5.2.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3b274aa..d76136f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,6 +11,7 @@ specifiers: jest-environment-jsdom: ^29.7.0 jsdoc: ^4.0.2 jsdom: ^22.1.0 + prettier: 3.0.3 ts-jest: ^29.1.1 ts-node: ^10.9.1 typescript: ^5.2.2 @@ -27,6 +28,7 @@ devDependencies: jest-environment-jsdom: 29.7.0 jsdoc: 4.0.2 jsdom: 22.1.0 + prettier: 3.0.3 ts-jest: 29.1.1_df7ucliaobjkqulprdmdbm3mmm ts-node: 10.9.1_4zwzvlqzy7ines4uqbxgpp4ph4 typescript: 5.2.2 @@ -3046,6 +3048,12 @@ packages: find-up: 4.1.0 dev: true + /prettier/3.0.3: + resolution: {integrity: sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==} + engines: {node: '>=14'} + hasBin: true + dev: true + /pretty-format/29.7.0: resolution: {integrity: sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}