From 7237cc42368fa8f298dd39d45e9eabcc139534c8 Mon Sep 17 00:00:00 2001 From: Timotei Albu Date: Sat, 21 Sep 2024 14:38:52 -0600 Subject: [PATCH] add prettier and fix all issues. --- .prettierrc | 7 +++++++ README.md | 1 - package.json | 4 ++++ pnpm-lock.yaml | 19 ++++++++++++++++--- 4 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 .prettierrc diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..c9ae50d --- /dev/null +++ b/.prettierrc @@ -0,0 +1,7 @@ +{ + "semi": true, + "singleQuote": true, + "trailingComma": "all", + "printWidth": 80, + "tabWidth": 2 +} diff --git a/README.md b/README.md index 1192f99..00c394b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ aws rekognition detect-labels --image '{\"S3Object\":{\"Bucket\":\"eliashomesltd.com\",\"Name\":\"images/img/1/b_2.JPG\"}}' - This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). ## Available Scripts diff --git a/package.json b/package.json index 9ce8460..978d9cb 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,11 @@ ], "type": "module", "license": "MIT", + "scripts": { + "format": "prettier --write ." + }, "devDependencies": { + "prettier": "^3.3.3", "typescript": "^5.6.2" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4b87a02..d0a5b3c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,20 +5,33 @@ settings: excludeLinksFromLockfile: false importers: - .: devDependencies: + prettier: + specifier: ^3.3.3 + version: 3.3.3 typescript: specifier: ^5.6.2 version: 5.6.2 packages: + prettier@3.3.3: + resolution: + { + integrity: sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==, + } + engines: { node: '>=14' } + hasBin: true typescript@5.6.2: - resolution: {integrity: sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==} - engines: {node: '>=14.17'} + resolution: + { + integrity: sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==, + } + engines: { node: '>=14.17' } hasBin: true snapshots: + prettier@3.3.3: {} typescript@5.6.2: {}