From 3483b8efcd18343f47ee7a545229fd8664616cdb Mon Sep 17 00:00:00 2001 From: Christopher Yin Date: Sat, 1 Aug 2020 04:30:46 -0400 Subject: [PATCH] Update README.md Closest flag to this is the --ignore-path option in the Prettier docs, but it's different (path to a list of ignored directories). Doesn't seem necessary to include here as it already looks for the ./.prettierignore file --- prettier/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prettier/README.md b/prettier/README.md index 2eb64ed..b54347f 100644 --- a/prettier/README.md +++ b/prettier/README.md @@ -20,13 +20,13 @@ npm install -g prettier@latest Prettify all web files in a project, recursively: ```bash -prettier --write '**/*{.md,.js,.html,.css}' --ignore ./dist +prettier --write '**/*{.md,.js,.html,.css}' ``` Tell Prettier which files to ignore every time ```bash -echo "./dist" >> .prettierignore +echo "dist/" >> .prettierignore ``` Tell Prettier which settings to use - do NOT use `package.json` when it's not -- 2.25.1