Shared Prettier configuration
This shared Prettier configuration changes some of the default behavior.
Integrate into new project
- Install this package as devDependency
# yarn
$ yarn add -D @rhumbertgz/prettier-config
# npm
$ npm i -D @rhumbertgz/prettier-config
# pnpm
$ pnpm add -D @rhumbertgz/prettier-config
- Install peer dependencies of this package in your project as devDependencies
Therefore, you can make use of the tool install-peerdeps:
# yarn
$ yarn dlx install-peerdeps --dev @rhumbertgz/prettier-config
# npm
$ npx install-peerdeps --dev @rhumbertgz/prettier-config
# pnpm
$ pnpm dlx install-peerdeps --dev @rhumbertgz/prettier-config
- Use Prettier config in your project
Create a .prettierrc
file in project root with the following content:
"@rhumbertgz/prettier-config"