A standard Prettier configuration.
pnpm add -D prettier @vanya2h/prettier-configexport { 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).
{
"prettier": "@vanya2h/prettier-config"
}import config from "@vanya2h/prettier-config";
export default {
...config,
printWidth: 80,
};| Option | Value |
|---|---|
semi |
true |
trailingComma |
"all" |
singleQuote |
false |
printWidth |
120 |
tabWidth |
2 |