diff --git a/package.json b/package.json index 6ef5f1c77..3c5771994 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,7 @@ "lint-staged": { "{apps,libs}/**/*.{ts,json,md,scss}": [ "npm run affected:lint -- --uncommitted --fix", - "prettier --write", + "npm run format:write -- --uncommitted", "git add" ] }, diff --git a/stories/howto.md b/stories/howto.md index 032ad802e..bdebc8a63 100644 --- a/stories/howto.md +++ b/stories/howto.md @@ -96,6 +96,9 @@ ng lint home --fix npm run format:check -- --uncommitted npx nx format:check --uncommitted +npm run format:write -- --uncommitted +npx nx format:write --uncommitted + # And you want to do the following in the CI: npm run format:check --base=master --head=HEAD npx nx format:check --base=master --head=HEAD