We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39958a9 commit faab67dCopy full SHA for faab67d
pre-commit/2-js-debug.sh
@@ -13,7 +13,7 @@ function test_file {
13
# Set +e before and -e after for _optional_ linters (i.e.: that will only
14
# output messages upon commit, e.g.: style linters).
15
set +e
16
- grep -i -E '\b(console\.)\b' $file
+ grep -i -E '\bconsole\.(assert|clear|count|countReset|debug|dir|dirxml|error|exception|group|groupCollapsed|groupEnd|info|log|profile|profileEnd|table|time|timeEnd|timeLogtimeStamp|trace|warn)\b' $file
17
set -e
18
}
19
0 commit comments