@ostermann/prettier-config
v0.0.3
Published
Prettier configurations
Maintainers
Readme
Prettier Configuration
This is a group of shareable Prettier configurations.
Usage
Install the npm package in your repository
npm install @ostermann/prettier-configInstall dependencies in your repository
These should be installed automatically with the package installation,
but it is useful to have prettier and prettier-plugin-tailwindcss
installed to allow for overriding the configuration.
npm install --save-dev prettier prettier-plugin-tailwindcssUse the base config
In your project's package.json:
{
"prettier": "@ostermann/prettier-config"
}Or using a specific configuration:
{
"prettier": "@ostermann/prettier-config/frontend"
}Override the base config in your own project
If you want to extend or override the base config, create a prettier.config.js file in your project:
// prettier.config.js
import baseConfig from "@ostermann/prettier-config";
export default {
...baseConfig,
// Your overrides here
printWidth: 100,
};Note: If you use a
prettier.config.jsfile withimport, your project must have"type": "module"in itspackage.json.
Contributing
Get started
- Install dependencies
npm install --workspace @ostermann/prettier-config- Build the project
npm run build --workspace @ostermann/prettier-configCreating or updating a config
- Create or update the prettier configuration
- Update the version in package.json
- Update the CHANGELOG
- Run the build
- Deploy the package
