Skip to content

Commit

Permalink
refactor: Replace pretty-quick with Prettier 3.0 (#601)
Browse files Browse the repository at this point in the history
  • Loading branch information
bennycode authored Aug 1, 2023
1 parent 04f50be commit 7623ba8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 370 deletions.
9 changes: 5 additions & 4 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
pre-commit:
parallel: false
parallel: true
commands:
1_prettier:
run: npx pretty-quick --staged --ignore-path .gitignore
2_eslint:
format:
glob: '*.{css,html,json,less,md,scss,yml}'
run: npx prettier --write --log-level error {staged_files}
lint:
glob: '*.{js,jsx,ts,tsx}'
run: npx eslint {staged_files} --fix
Loading

0 comments on commit 7623ba8

Please sign in to comment.