@fradser/prettier-config
v2.0.1
Published
Prettier config
Downloads
5
Readme
@zestia/prettier-config
This package provides a common Prettier configuration, so that all projects have consistent code formatting.
Installation
npm install --save-dev @zestia/prettier-config
Setup
Create the following file
.prettierrc.js
module.exports = require("@zestia/prettier-config");
Add the following to
scripts
inpackage.json
"prettier": "prettier '**/*.{js,json,css,scss,html,hbs,md}' --write"
Install the relevant Editor Addon/Plugin and enable "Prettier on Save".
Running
npm run prettier
Related repos
- https://github.com/zestia/prettier-config
- https://github.com/zestia/eslint-config
- https://github.com/zestia/stylelint-config
- https://github.com/zestia/template-lint-config