@ayingott/prettier-config
v1.2.7
Published
prettier-config
Downloads
23
Readme
@ayingott/prettier-config
My personal taste of the prettier config.
Usage
ni -D @ayingott/prettier-config
With all out-of-box features
// prettier.config.js
import config from "@ayingott/prettier-config"
export default config
// package.json
{
"prettier": "@ayingott/prettier-config"
}
Customize config
// prettier.config.js
// @ts-check
import { defineConfig } from "@ayingott/prettier-config/config"
export default defineConfig({
// custom configs
})
VSCode
// .vscode/settings.json
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
}
}