From c36f10812920a75c1242fa6ad3c65a27f84181ed Mon Sep 17 00:00:00 2001 From: Karolina Kosiorowska Date: Fri, 17 Nov 2023 09:19:09 +0100 Subject: [PATCH 1/2] Remove unnecessary configuration for prettier We already have the `website/.prettierrc.js` config file defined, so let's remove the redundant config line from the `package.json` file. --- website/package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/website/package.json b/website/package.json index 9598d1778..65fdfb31d 100644 --- a/website/package.json +++ b/website/package.json @@ -6,7 +6,6 @@ "keywords": [ "gatsby" ], - "prettier": "@thesis/prettier-config", "scripts": { "start": "gatsby develop", "build": "gatsby build", From 7e033ce93afabfe51eba654e00d2a388c9233677 Mon Sep 17 00:00:00 2001 From: Karolina Kosiorowska Date: Fri, 17 Nov 2023 09:24:58 +0100 Subject: [PATCH 2/2] Fix the prettier configuration issue The prettier is config in the `dapp/.prettierrc.js` file. This configuration depends on the type value in your `package.json`. Adding "type": "module" in package.json makes all `.js` files ES modules, and then they can only be imported in other ES modules. Prettier is not able to import `.prettierrc.js` because it is now an ES module. --- dapp/package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/dapp/package.json b/dapp/package.json index da7f674ec..d22c7b537 100644 --- a/dapp/package.json +++ b/dapp/package.json @@ -2,7 +2,6 @@ "name": "dapp", "private": true, "version": "1.0.0", - "type": "module", "scripts": { "start": "vite", "build": "tsc && vite build",