A codebase formatting example accompanying this blog post on two-step-formatting
yarn
npx prettier --write index.js
branch name | formatted | description |
---|---|---|
master | ✗ | original master branch |
develop | ✗ | original develop branch |
prettier-master | ✓ | original master branch formatted |
prettier-develop | ✓ | original develop branch formatted |
develop-merge-master | ✗ | original develop branch merged with master branch |
prettier-develop-merge-master | ✓ | original develop branch merged with master branch, then formatted |
prettier-master-merge-develop | ✓ | original develop branch merged with master branch, then merged with prettier-master, conflicts resolved, then formatted |