From 70d21e28154cb8e36aa12b39889b5c26e3166c9c Mon Sep 17 00:00:00 2001 From: Matchu Date: Tue, 24 Oct 2023 16:37:06 -0700 Subject: [PATCH] Add Prettier to dev dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I'm trying out a new editor setup, and it noticed that Prettier isn't obviously installed! I think it makes sense to put it in dev deps, even if there's not a direct hook calling it—though tbh maybe I should add it to `yarn dev` somehow? --- package.json | 3 +++ yarn.lock | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/package.json b/package.json index 9510df68..98488824 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,9 @@ "react-transition-group": "^4.3.0", "tweenjs": "^1.0.2" }, + "devDependencies": { + "prettier": "^3.0.3" + }, "scripts": { "build": "esbuild app/javascript/*.* --bundle --sourcemap --outdir=app/assets/builds --public-path=/assets --asset-names=[name]-[hash].digested --loader:.js=jsx --loader:.png=file --loader:.svg=file --loader:.min.js=text", "dev": "yarn build --watch --public-path=/dev-assets" diff --git a/yarn.lock b/yarn.lock index 19ac328f..a99ac12b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1523,6 +1523,11 @@ popmotion@9.3.6: style-value-types "4.1.4" tslib "^2.1.0" +prettier@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.3.tgz#432a51f7ba422d1469096c0fdc28e235db8f9643" + integrity sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg== + promise-polyfill@^8.2.3: version "8.3.0" resolved "https://registry.yarnpkg.com/promise-polyfill/-/promise-polyfill-8.3.0.tgz#9284810268138d103807b11f4e23d5e945a4db63"