From aa7e8249759de0d14a1812df5b36784947b62217 Mon Sep 17 00:00:00 2001 From: SeanAverS Date: Sat, 9 Nov 2024 11:03:12 -0800 Subject: [PATCH 1/3] Add prettier dependencies --- package-lock.json | 17 +++++++++++++++++ package.json | 4 +++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 8c333aa..3bfea52 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,6 +30,7 @@ }, "devDependencies": { "@vitejs/plugin-vue": "^5.1.4", + "prettier": "^3.3.3", "typescript": "^5.6.3", "vite": "^5.4.9" } @@ -1336,6 +1337,22 @@ "node": "^10 || ^12 || >=14" } }, + "node_modules/prettier": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", + "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", + "dev": true, + "license": "MIT", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, "node_modules/primeicons": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/primeicons/-/primeicons-7.0.0.tgz", diff --git a/package.json b/package.json index fc44abf..67e803a 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,15 @@ "description": "", "scripts": { "dev": "vite", - "build": "vite build" + "build": "vite build", + "format": "prettier --write ." }, "keywords": [], "author": "", "license": "ISC", "devDependencies": { "@vitejs/plugin-vue": "^5.1.4", + "prettier": "^3.3.3", "typescript": "^5.6.3", "vite": "^5.4.9" }, From e1e6489cfada215de7a0de88091f3213b7a94b1f Mon Sep 17 00:00:00 2001 From: SeanAverS Date: Sat, 9 Nov 2024 11:08:54 -0800 Subject: [PATCH 2/3] Create .prettierrc file --- .prettierrc | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .prettierrc diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..53bd213 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,6 @@ +{ + "semi": true, + "tabWidth": 2, + "useTabs": false, + "singleQuote": true +} \ No newline at end of file From 371bf524d0903709b32f3813ed0c0f5cabff1c4e Mon Sep 17 00:00:00 2001 From: SeanAverS Date: Sat, 9 Nov 2024 11:09:25 -0800 Subject: [PATCH 3/3] Create .prettierignore file --- .prettierignore | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .prettierignore diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..e2e27f2 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,3 @@ +node_modules/ +dist/ +build/