prettier-plugin-bash icon indicating copy to clipboard operation
prettier-plugin-bash copied to clipboard

How to use?

Open coolaj86 opened this issue 5 years ago • 2 comments

To get prettier I npm install -g prettier.

To make this plugin work with it I...

npm install .... ???

coolaj86 avatar Sep 10 '20 21:09 coolaj86

@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.

dawsbot avatar Sep 11 '20 05:09 dawsbot

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.

ssbarnea avatar Feb 18 '22 13:02 ssbarnea