Skip to content

Commit 8afb372

Browse files
authoredSep 30, 2021
Use lint-staged to run prettier (#2947)
* Try out lint-staged * Testing * WIP * Another attempt * Another test * Linting * Fix a test file * More tweaks * More git hook tweaks * Another tweak * Ditto * Linting fixes
1 parent 6753cf5 commit 8afb372

File tree

166 files changed

+2525
-1427
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+2525
-1427
lines changed
 

‎.husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

‎.husky/pre-commit

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/bin/sh
2+
3+
# Please see https://typicode.github.io/husky/#/?id=command-not-found
4+
# if you have trouble running this command.
5+
26
. "$(dirname "$0")/_/husky.sh"
37

4-
npm run format-staged
8+
npm run lint-staged

0 commit comments

Comments
 (0)
Please sign in to comment.