Skip to content

Commit

Permalink
Add pre-commit hook to fix linting issues (Leaflet#8212)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonkoops authored May 4, 2022
1 parent 659b676 commit 0a4036a
Show file tree
Hide file tree
Showing 5 changed files with 949 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ debug/local/
Gemfile.lock
yarn.lock
*.log
.eslintcache
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
Loading

0 comments on commit 0a4036a

Please sign in to comment.