Skip to content

Commit

Permalink
fix(*): fix format:write -- --uncommitted
Browse files Browse the repository at this point in the history
format:write -- --uncommitted added
  • Loading branch information
xmlking committed Sep 9, 2018
1 parent fb3d2e8 commit 3b0eb49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -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"
]
},
Expand Down
3 changes: 3 additions & 0 deletions stories/howto.md
Expand Up @@ -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
Expand Down

0 comments on commit 3b0eb49

Please sign in to comment.