Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbhmr authored Sep 5, 2023
1 parent 346e490 commit f315db0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/prettier/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@

This Dev Container Feature installs Prettier and plugins globally using Node.js
and npm to run `npm install -g prettier`. You can also add plugins by specifying
a `plugins` option. This will install each plugin using
`npm install -D $plugin`.
a `plugins` option. This will install all the plugins at once using
`npm install -g $PLUGINS`. You can use `[email protected]` full npm
specifiers! Just make sure each plugin is separated by a space character, **not
a comma**.

## Usage

Expand Down Expand Up @@ -56,7 +58,7 @@ You can specify plugins like this:
// devcontainer.json
"features": {
"ghcr.io/devcontainers-community/features/prettier": {
"plugins": "prettier-plugin-jsdoc @prettier/plugin-php"
"plugins": "prettier-plugin-jsdoc @prettier/plugin-php@0.20.1"
}
}
```

0 comments on commit f315db0

Please sign in to comment.