From 012d0aa4dfff3a29479cf581ff97171953444190 Mon Sep 17 00:00:00 2001 From: Frank Harrison Date: Mon, 11 Nov 2024 07:18:31 +0000 Subject: [PATCH] chore(format): also format json (no effect) Adds json-file formating to the prettier command. Currently this has no effect, but if the `tabWidth` is changed to 2 and the `printWidth` reduced to 88, then it will also impact the json files and keep the formatting consistent across code and data. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a96dacb..29e020f 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "tsc-check": "tsc --noEmit", "pretty": "npm run prettyNoWrite -- --write --log-level error", "prettyCheck": "npm run prettyNoWrite -- --check", - "prettyNoWrite": "prettier --config ./.prettierrc \"**/*.js\" \"**/*.ts\"", + "prettyNoWrite": "prettier --config ./.prettierrc \"**/*.js\" \"**/*.ts\" \"**/*.json\" ", "check": "npm run lint && npm run svelte-check && npm run tsc-check" }, "keywords": [],