Skip to content

Commit

Permalink
fix(prettier): windows environments (#2889)
Browse files Browse the repository at this point in the history
* fix(prettier): windows environments

* Create .lintstagedrc-prettier.js
  • Loading branch information
mfranzke authored Nov 19, 2024
1 parent 5b68c37 commit 8efb22f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .config/.lintstagedrc-prettier.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
'**/*': 'prettier --write --ignore-unknown'
};
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ echo "### npm run general lintings ###"
concurrently "node ./scripts/check-commit-mail.js" "node ./scripts/cypress/component-check.js" "node ./scripts/angular-module-component-check.js" "npx validate-branch-name"
echo "### lint staged files ###"
lint-staged
prettier $(git diff --cached --name-only --diff-filter=ACMR | sed 's|( |&)|\\ |g') --write --ignore-unknown
lint-staged --config .config/.lintstagedrc-prettier.js
git update-index --again

0 comments on commit 8efb22f

Please sign in to comment.