From: Christopher Yin Date: Sat, 1 Aug 2020 08:30:46 +0000 (-0400) Subject: Update README.md X-Git-Url: https://git.josue.xyz/?a=commitdiff_plain;h=3483b8efcd18343f47ee7a545229fd8664616cdb;p=webi-installers%2F.git 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 --- 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