@mvlchain/prettier-config
v1.0.1
Published
Common Prettier config used in MVL JavaScript projects.
Downloads
431
Readme
@mvlchain/prettier-config
Common Prettier config used in MVL FE projects.
Install
yarn add -D @mvlchain/prettier-config
Usage
.prettierrc.js
- Add the following to
.prettierrc.js
(orprettier.config.js
):
module.exports = require('@mvlchain/prettier-config');
Overwrite
You can overwrite config.
module.exports = {
...require('@mvlchain/prettier-config'),
// overwrite
printWidth: 140,
tabWidth: 4,
};
package.json
- Add the following to
package.json
:
"prettier": "@mvlchain/prettier-config",