Shared Prettier configuration
This shared Prettier configuration changes some of the default behavior.
Integrate into new project
- Install this package as devDependency
# with Yarn
$ yarn add -D @megamatt/prettier-config
# with npm
$ npm i -D @megamatt/prettier-config
- 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
- Use Prettier config in your project
Create a .prettierrc
file in project root with the following content:
"@megamatt/prettier-config"