Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Prettier support #1338

Merged
merged 1 commit into from
Aug 1, 2023
Merged

Prettier support #1338

merged 1 commit into from
Aug 1, 2023

Conversation

eyesplitter
Copy link

Hey!
This pull request allows you to format the codebase and unify it across all developers automatically.
To do that I suppose to use Prettier.
Prettier is an opinionated code formatter

I made a simple config that you can adjust to your needs.

There are two scripts in the package.json

  1. prettier - check all files
  2. prettier:fix - format all files

You need to make a new PR with prettier:fix to format the whole old codebase
Also, Prettier can integrate with most editors

To see examples check the playground

@akhaneev
Copy link
Contributor

That would be really helpful to have the same automatic formatting preferences for all contributors. It will make the code cleaner and easy to read.

@Dushusir Dushusir merged commit 947d9bb into dream-num:master Aug 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants