From 944cf75b3aee146b16ac2a0e623037c131adc355 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Wed, 2 Aug 2023 18:35:52 +0100 Subject: Installs Prettier --- frontend/package.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'frontend/package.json') diff --git a/frontend/package.json b/frontend/package.json index b575b4b..1a71c52 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -6,9 +6,15 @@ "start": "astro dev", "build": "astro build", "preview": "astro preview", - "astro": "astro" + "astro": "astro", + "format": "prettier ./**/* --check", + "format--write": "prettier ./**/* --write" }, "dependencies": { "astro": "^2.9.7" + }, + "devDependencies": { + "prettier": "^3.0.0", + "prettier-plugin-astro": "^0.11.0" } -} \ No newline at end of file +} -- cgit v1.2.3