From e09536ba3e322ba95567513d958021b64e4cdd9c Mon Sep 17 00:00:00 2001 From: Constantine Prokopenko <48758429+constantine-prokopenko-vrp@users.noreply.github.com> Date: Fri, 3 Nov 2023 18:38:55 +0300 Subject: [PATCH] Update prettier.md (#5030) 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 <57969266+sbudhirajadoc@users.noreply.github.com> Co-authored-by: gbockus-sf <76090802+gbockus-sf@users.noreply.github.com> --- docs/_articles/en/user-guide/prettier.md | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/docs/_articles/en/user-guide/prettier.md b/docs/_articles/en/user-guide/prettier.md index e59bbc7073..e37b36d688 100644 --- a/docs/_articles/en/user-guide/prettier.md +++ b/docs/_articles/en/user-guide/prettier.md @@ -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" } + } + ] } ```