Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use? #12

Open
coolaj86 opened this issue Sep 10, 2020 · 2 comments
Open

How to use? #12

coolaj86 opened this issue Sep 10, 2020 · 2 comments

Comments

@coolaj86
Copy link

To get prettier I npm install -g prettier.

To make this plugin work with it I...

npm install .... ???
@dawsbot
Copy link

dawsbot commented Sep 11, 2020

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

@ssbarnea
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants