@vmoe/prettier-config
v1.1.1
Published
Viki's shareable Prettier config.
Downloads
11
Readme
@vmoe/prettier-config
Viki's shareable Prettier config.
Features
module.exports = {
htmlWhitespaceSensitivity: 'strict',
vueIndentScriptAndStyle: true,
printWidth: 100,
semi: false,
singleQuote: true,
}
For full prettier default config, head to defaults.json
.
Usage
Install
# npm
npm i -D @vmoe/prettier-config
# yarn
yarn add -D @vmoe/prettier-config
# pnpm
pnpm add -D @vmoe/prettier-config
Edit your config
add prettier
field to your package.json
:
{
"name": "awesome-project",
// ...
"prettier": "@vmoe/prettier-config"
// ...
}
or add a .prettierrc
file that contains following string:
"@vmoe/prettier-config"
or you may want to override some rules based on it:
// .prettierrc.js
module.exports = {
...require('@vmoe/prettier-config'),
semi: true,
singleQuote: false,
}
@vmoe/prettier-config/fun
You will like it, maybe. 🤣
Just require config from the fun
path and try it multiple times to see what will happen.
// .prettierrc.js
module.exports = require('@vmoe/prettier-config/fun')
License
MIT License © 2022-PRESENT Viki