We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6177ed commit 30b46cfCopy full SHA for 30b46cf
tools/git/hooks/pre-commit
@@ -234,6 +234,17 @@ run_lint() {
234
fi
235
236
237
+ # Lint TypeScript declaration files...
238
+ files=$(echo "${changed_files}" | grep '\.d\.ts$' | tr '\n' ' ')
239
+ if [[ -n "${files}" ]]; then
240
+ make TYPESCRIPT_DECLARATIONS_LINTER=dtslint FILES="${files}" lint-typescript-declaration-files > /dev/null >&2
241
+ if [[ "$?" -ne 0 ]]; then
242
+ echo '' >&2
243
+ echo 'TypeScript declaration file lint errors.' >&2
244
+ return 1
245
+ fi
246
247
+
248
# Lint license headers...
249
files=$(echo "${changed_files}" | tr '\n' ' ')
250
if [[ -n "${files}" ]]; then
0 commit comments