@fenge/prettier-config
v0.1.3
Published
An elegant prettier shareable config.
Downloads
451
Readme
@fenge/prettier-config
An elegant prettier shareable config.
Features
- Sort ESM import statements.
- Sort
package.json
. - Sort Tailwind CSS classes.
- Elegant. One-line of config.
- Compatible with default prettier config
{}
. Only introduced some plugins.
Usage
Install
pnpm add -D prettier @fenge/prettier-config
Config prettier.config.js
export { default } from "@fenge/prettier-config";
Customize
import config from "@fenge/prettier-config";
export default {
...config,
// Add your own configs below
semi: true,
singleQuote: true,
};
Config package.json
{
"scripts": {
"format": "prettier -c .",
"format:write": "prettier -c -w ."
}
}
License
MIT