@vanya2h/prettier-config
v0.7.0
Published
A standard prettier config
Readme
@vanya2h/prettier-config
A standard Prettier configuration.
Installation
pnpm add -D prettier @vanya2h/prettier-configUsage
Via prettier.config.js (recommended)
export { default } from "@vanya2h/prettier-config";Use this form when you need Prettier to resolve the config correctly (e.g. in pnpm workspaces, or with the VS Code Prettier extension).
Via package.json
{
"prettier": "@vanya2h/prettier-config"
}Extending with overrides
import config from "@vanya2h/prettier-config";
export default {
...config,
printWidth: 80,
};Config
| Option | Value |
| --------------- | ------- |
| semi | true |
| trailingComma | "all" |
| singleQuote | false |
| printWidth | 120 |
| tabWidth | 2 |
