From 715be54612beb1c38725bf193415b32efe236d50 Mon Sep 17 00:00:00 2001 From: Choi Young-jin Date: Thu, 19 May 2022 19:43:33 +0900 Subject: [PATCH] prettier: add --write example for js and ts files (#8069) --- pages/common/prettier.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/prettier.md b/pages/common/prettier.md index fd882014c9..bff579d472 100644 --- a/pages/common/prettier.md +++ b/pages/common/prettier.md @@ -22,3 +22,7 @@ - Format files or directories recursively using single quotes and no trailing commas: `prettier --single-quote --trailing-comma {{none}} --write {{path/to/file_or_directory}}` + +- Format JavaScript and TypeScript files recursively, replacing the original: + +`prettier --write "**/*.{js,jsx,ts,tsx}"`