This plugin provides the ability to format your code with Prettier in micro.
It requires that you have prettier
available in your path. So, npm i -g prettier
would do the job in most cases.
These are the available configuration options right now:
formatOnSave
: Format everytime your save (default:true
)requireConfig
: If used a.prettierrc.js
file in your working directory is required (default:true
)successMessage
: Print success message after formatting (default:true
)debug
: Print error messages in InfoBar (default:false
)
Add this repo as a pluginrepos
option like this:
"pluginrepos": [
"https://raw.githubusercontent.com/sebkolind/micro-prettier/master/repo.json"
],
Install with > plugin install prettier
.
- Check for other configuration files than
.prettierrc.js