We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c65a9e4 commit 46315ebCopy full SHA for 46315eb
tools/git/hooks/pre-commit
@@ -109,6 +109,17 @@ run_lint() {
109
fi
110
111
112
+ # Lint JavaScript command-line interfaces...
113
+ files=$(echo "${changed_files}" | grep '\/bin\/cli$' | tr '\n' ' ')
114
+ if [[ -n "${files}" ]]; then
115
+ make FILES="${files}" lint-javascript-files > /dev/null >&2
116
+ if [[ "$?" -ne 0 ]]; then
117
+ echo '' >&2
118
+ echo 'JavaScript lint errors for command-line interface files.' >&2
119
+ return 1
120
+ fi
121
122
+
123
# Lint JavaScript examples files...
124
files=$(echo "${changed_files}" | grep 'examples/.*\.js$' | tr '\n' ' ')
125
if [[ -n "${files}" ]]; then
0 commit comments