Skip to content

Commit

Permalink
fix: update grep path to lint both declaration and test files
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Nov 25, 2023
1 parent 8324ff0 commit 9a69ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/git/hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ run_lint() {
fi
# Lint TypeScript declaration files...
if [[ -z "${skip_typescript_declarations}" ]]; then
files=$(echo "${changed_files}" | grep '\.d\.ts$' | tr '\n' ' ')
files=$(echo "${changed_files}" | grep '/docs/types/.*\.ts$' | tr '\n' ' ')
if [[ -n "${files}" ]]; then
make TYPESCRIPT_DECLARATIONS_LINTER=eslint FILES="${files}" lint-typescript-declarations-files > /dev/null >&2
if [[ "$?" -ne 0 ]]; then
Expand Down

0 comments on commit 9a69ce2

Please sign in to comment.