@coldboy002/prettier-config
v1.2.0
Published
Shareable config for prettier
Maintainers
Readme
@coldboy002/prettier-config
Shareable config for Prettier.
For consistent formatting across my repos.
Installation
npm install --save-dev @coldboy002/prettier-configor
yarn add --dev @coldboy002/prettier-configNote: This package requires Node.js 22.0.0 or later. It is not compatible with older versions.
Usage
Add this line to your package.json
"prettier": "@coldboy002/prettier-config",Alternatively, add this to .prettierrc file:
"@coldboy002/prettier-config"To extend the configuration, create prettier.config.js and spread this config onto your own config object:
import cbConfig from '@coldboy002/prettier-config'
/** @type {import('prettier').Config} */
const config = {
...cbConfig,
experimentalTernaries: true,
}
export default configRefer to Prettier documentation, if you need override some options.
