Skip to content

Commit

Permalink
Fix type annotations for config docs (prettier#15229)
Browse files Browse the repository at this point in the history
This lets VSCode validate the `overrides` property.
  • Loading branch information
rotu authored and medikoo committed Feb 15, 2024
1 parent e05db04 commit 12d749a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ JS(ESM):
```js
// prettier.config.js, .prettierrc.js, prettier.config.mjs, or .prettierrc.mjs

/** @type {import("prettier").Options} */
/** @type {import("prettier").Config} */
const config = {
trailingComma: "es5",
tabWidth: 4,
Expand All @@ -53,7 +53,7 @@ JS(CommonJS):
```js
// prettier.config.js, .prettierrc.js, prettier.config.cjs, or .prettierrc.cjs

/** @type {import("prettier").Options} */
/** @type {import("prettier").Config} */
const config = {
trailingComma: "es5",
tabWidth: 4,
Expand Down
4 changes: 2 additions & 2 deletions website/versioned_docs/version-stable/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ JS(ESM):
```js
// prettier.config.js, .prettierrc.js, prettier.config.mjs, or .prettierrc.mjs

/** @type {import("prettier").Options} */
/** @type {import("prettier").Config} */
const config = {
trailingComma: "es5",
tabWidth: 4,
Expand All @@ -54,7 +54,7 @@ JS(CommonJS):
```js
// prettier.config.js, .prettierrc.js, prettier.config.cjs, or .prettierrc.cjs

/** @type {import("prettier").Options} */
/** @type {import("prettier").Config} */
const config = {
trailingComma: "es5",
tabWidth: 4,
Expand Down

0 comments on commit 12d749a

Please sign in to comment.