prettier-plugin-bash
prettier-plugin-bash copied to clipboard
How to use?
To get prettier I npm install -g prettier.
To make this plugin work with it I...
npm install .... ???
@coolaj86 you'll need to use the CLI arg --plugin=PATH_TO_THIS_BASH_PLUGIN after your prettier command.
For example:
prettier --write file.sh --plugin=./node_modules/prettier-plugin-bash
You'll find information about running prettier plugins here.
Is this plugin abandoned? Asking as there is another prettier-plugin-sh that seems more active and also installable with just npm install -g pretter-plugin-sh. Sadly it seems to also attempt to format ini files... and fails badly with those.