@git-validator/prettier-config
v0.7.2
Published
An elegant prettier shareable config.
Downloads
310
Readme
@git-validator/prettier-config
An elegant prettier shareable config.
Features
- Elegant. One-line of config.
- Compatible with default prettier config
{}
. Only introduced some plugins. - ~~Enforce consistent brace style. Powered by
prettier-plugin-curly
.~~ - Sort
package.json
. Powered byprettier-plugin-packagejson
. - Sort imports. Powered by
@ianvs/prettier-plugin-sort-imports
. - Sort Tailwind CSS classes. Powered by
prettier-plugin-tailwindcss
.
Usage
Install
pnpm add -D prettier @git-validator/prettier-config
Config prettier.config.js
import config from "@git-validator/prettier-config";
export default config;
Config package.json
{
"scripts": {
"format": "prettier -c .",
"format:write": "prettier -c -w ."
}
}
License
MIT