@@ -54,35 +54,35 @@ files=$(echo "${files_to_lint}" | tr ' ' '\n' | grep '\.js$' | grep -v -e '/exam
5454# Build native addons if present:
5555packages=$( echo " ${files} " | tr ' ' ' \n' | sed ' s/^lib\/node_modules\///g' | sed ' s/\/lib\/.*//g' | sort | uniq)
5656for pkg in ${packages} ; do
57- if [ -f " lib/node_modules/${pkg} /binding.gyp" ]; then
58- NODE_ADDONS_PATTERN=" ${pkg} " make install-node-addons
59- fi
57+ if [ -f " lib/node_modules/${pkg} /binding.gyp" ]; then
58+ NODE_ADDONS_PATTERN=" ${pkg} " make install-node-addons
59+ fi
6060done
6161
6262if [[ -n " ${files} " ]]; then
63- make lint-javascript-files FIX=" ${fix} " FILES=" ${files} "
63+ make lint-javascript-files FIX=" ${fix} " FILES=" ${files} "
6464fi
6565
6666# Lint JavaScript command-line interfaces...
6767file=$( echo " ${files_to_lint} " | tr ' ' ' \n' | grep ' \.js$' | grep -E ' /bin/cli$' | tr ' \n' ' ' | sed ' s/ $//' )
6868if [[ -n " ${file} " ]]; then
69- make lint-javascript-files FIX=" ${fix} " FILES=" ${file} "
69+ make lint-javascript-files FIX=" ${fix} " FILES=" ${file} "
7070fi
7171
7272# Lint JavaScript example files:
7373files=$( echo " ${files_to_lint} " | tr ' ' ' \n' | grep ' /examples/.*\.js$' | tr ' \n' ' ' | sed ' s/ $//' )
7474if [[ -n " ${files} " ]]; then
75- make lint-javascript-files FIX=" ${fix} " FILES=" ${files} " ESLINT_CONF=" ${eslint_examples_conf} "
75+ make lint-javascript-files FIX=" ${fix} " FILES=" ${files} " ESLINT_CONF=" ${eslint_examples_conf} "
7676fi
7777
7878# Lint JavaScript test files:
7979files=$( echo " ${files_to_lint} " | tr ' ' ' \n' | grep ' /test/.*\.js$' | tr ' \n' ' ' | sed ' s/ $//' )
8080if [[ -n " ${files} " ]]; then
81- make lint-javascript-files FIX=" ${fix} " FILES=" ${files} " ESLINT_CONF=" ${eslint_tests_conf} "
81+ make lint-javascript-files FIX=" ${fix} " FILES=" ${files} " ESLINT_CONF=" ${eslint_tests_conf} "
8282fi
8383
8484# Lint JavaScript benchmark files:
8585files=$( echo " ${files_to_lint} " | tr ' ' ' \n' | grep ' /benchmark/.*\.js$' | tr ' \n' ' ' | sed ' s/ $//' )
8686if [[ -n " ${files} " ]]; then
87- make lint-javascript-files FIX=" ${fix} " FILES=" ${files} " ESLINT_CONF=" ${eslint_benchmarks_conf} "
87+ make lint-javascript-files FIX=" ${fix} " FILES=" ${files} " ESLINT_CONF=" ${eslint_benchmarks_conf} "
8888fi
0 commit comments