@ddmxh/prettier-config
v0.0.5
Published
Personal preference of prettier config
Downloads
13
Readme
@ddmxh/prettier-config
Provide a common config for projects use
Installation
npm i -D @ddmxh/prettier-config
Usage
Crate a file named .prettierrc.js
module.exports = require('@ddmxh/prettier-config')
Running
As this package only provides the Prettier configuration, it is assumed you already have prettier
installed in your project.
It's recommended to install the relevant Editor Addons/Plugins and enable "Pretter on Save".
It's recommended to add a prettier script to
package.json
. An example one is:scripts: { "prettier": "prettier '**/*.{js,json,css,scss,md}' --write" }
You can then run the following, to automatically format your project's code:
npm run prettier
References
- https://github.com/zestia/prettier-config
- https://github.com/vuejs/vue/blob/dev/.editorconfig