Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@git-validator/prettier-config) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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 byprettier-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-configConfig 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