Skip to content

Commit

Permalink
build: add eslint to precommit check
Browse files Browse the repository at this point in the history
  • Loading branch information
petebacondarwin authored and mhevery committed May 15, 2021
1 parent ad4d70e commit b3c721d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"*.*": [
"prettier --write --ignore-unknown"
],
"*.ts": [
"npx eslint"
],
"(WORKSPACE|*.bazel|*.bzl)": [
"npm run bazel:lint-fix"
]
Expand Down

0 comments on commit b3c721d

Please sign in to comment.