diff --git a/docs/cli.md b/docs/cli.md index 0c6795ffa..e8dac38e8 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -52,14 +52,14 @@ prettier --check "src/**/*.js" Console output if all files are formatted: -``` +```console Checking formatting... All matched files use Prettier code style! ``` Console output if some of the files require re-formatting: -``` +```console Checking formatting... src/fileA.js src/fileB.js @@ -192,7 +192,7 @@ _abc.css_ _shell_ -```bash +```console $ cat abc.css | prettier --stdin-filepath abc.css .name { display: none; diff --git a/docs/options.md b/docs/options.md index f6a193368..c522e8fb6 100644 --- a/docs/options.md +++ b/docs/options.md @@ -79,9 +79,9 @@ Valid options: - `"consistent"` - If at least one property in an object requires quotes, quote all properties. - `"preserve"` - Respect the input use of quotes in object properties. -| Default | CLI Override | API Override | -| ------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -| `"as-needed"` | --quote-props | quoteProps: "" | +| Default | CLI Override | API Override | +| ------------- | ----------------------------------------------- | ----------------------------------------------- | +| `"as-needed"` | `--quote-props ` | `quoteProps: ""` | ## JSX Quotes @@ -103,9 +103,9 @@ Valid options: - `"none"` - No trailing commas. - `"all"` - Trailing commas wherever possible (including function arguments). This requires node 8 or a [transform](https://babeljs.io/docs/plugins/syntax-trailing-function-commas/). -| Default | CLI Override | API Override | -| ------- | ------------------------------------------------------ | ------------------------------------------------------ | -| `"es5"` | --trailing-comma | trailingComma: "" | +| Default | CLI Override | API Override | +| ------- | --------------------------------- | --------------------------------- | +| `"es5"` | `--trailing-comma ` | `trailingComma: ""` | ## Bracket Spacing @@ -129,7 +129,7 @@ Valid options: - `true` - Example: -``` +```jsx