Skip to content

Commit

Permalink
Fix a prettier config (#33)
Browse files Browse the repository at this point in the history
### What has been done

- Remove
[unnecessary](#16 (comment))
configuration for prettier
- Remove properties from `package.json` - The prettier is config in the
`dapp/.prettierrc.js` file. This configuration depends on the
[type](https://stackoverflow.com/questions/71184604/prettier-fails-when-declaring-type-module-in-package-json)
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. So let's remove that property.
  • Loading branch information
r-czajkowski authored Nov 17, 2023
2 parents 8ec82dd + 7e033ce commit 4f038dd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "dapp",
"private": true,
"version": "1.0.0",
"type": "module",
"scripts": {
"start": "vite",
"build": "tsc && vite build",
Expand Down
1 change: 0 additions & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"keywords": [
"gatsby"
],
"prettier": "@thesis/prettier-config",
"scripts": {
"start": "gatsby develop",
"build": "gatsby build",
Expand Down

0 comments on commit 4f038dd

Please sign in to comment.