Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a prettier config #33

Merged
merged 2 commits into from
Nov 17, 2023
Merged

Fix a prettier config #33

merged 2 commits into from
Nov 17, 2023

Conversation

kkosiorowska
Copy link
Contributor

@kkosiorowska kkosiorowska commented Nov 17, 2023

What has been done

  • Remove unnecessary configuration for prettier
  • Remove properties from package.json - 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. So let's remove that property.

We already have the `website/.prettierrc.js` config file defined, so let's remove the redundant config line from the `package.json` file.
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.
@kkosiorowska kkosiorowska self-assigned this Nov 17, 2023
@kkosiorowska kkosiorowska marked this pull request as ready for review November 17, 2023 08:32
@r-czajkowski r-czajkowski merged commit 4f038dd into main Nov 17, 2023
4 checks passed
@r-czajkowski r-czajkowski deleted the fix-prettier-config branch November 17, 2023 09:04
@nkuba nkuba added this to the MVP milestone Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants