Skip to content

Commit

Permalink
Update prettier.md (#5030)
Browse files Browse the repository at this point in the history
Apex prettier plugin missed in the example. Without it, the Format Code option will not appear in the file's list context menu actions.

Co-authored-by: Sonal Budhiraja <[email protected]>
Co-authored-by: gbockus-sf <[email protected]>
  • Loading branch information
3 people authored Nov 3, 2023
1 parent 28b3e38 commit e09536b
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions docs/_articles/en/user-guide/prettier.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,18 @@ You must create a configuration file `.prettierrc` in the root of your project.

```json
{
"trailingComma": "none",
"overrides": [
{
"files": "**/lwc/**/*.html",
"options": { "parser": "lwc" }
},
{
"files": "*.{cmp,page,component}",
"options": { "parser": "html" }
}
]
"plugins": ["prettier-plugin-apex"],
"trailingComma": "none",
"overrides": [
{
"files": "**/lwc/**/*.html",
"options": { "parser": "lwc" }
},
{
"files": "*.{cmp,page,component}",
"options": { "parser": "html" }
}
]
}
```

Expand Down

0 comments on commit e09536b

Please sign in to comment.