Shared Prettier configuration

This shared Prettier configuration changes some of the default behavior.

Integrate into new project

  1. Install this package as devDependency
# with Yarn
$ yarn add -D @megamatt/prettier-config

# with npm
$ npm i -D @megamatt/prettier-config
  1. Install peer dependencies of this package in your project as devDependencies

Therefore, you can make use of the tool install-peerdeps:

# with Yarn
$ yarn dlx install-peerdeps --dev @megamatt/prettier-config

# with npm
$ npx install-peerdeps --dev @megamatt/prettier-config
  1. Use Prettier config in your project

Create a .prettierrc file in project root with the following content:

"@megamatt/prettier-config"