@@ -54,35 +54,35 @@ files=$(echo "${files_to_lint}" | tr ' ' '\n' | grep '\.js$' | grep -v -e '/exam
54
54
# Build native addons if present:
55
55
packages=$( echo " ${files} " | tr ' ' ' \n' | sed ' s/^lib\/node_modules\///g' | sed ' s/\/lib\/.*//g' | sort | uniq)
56
56
for 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
60
60
done
61
61
62
62
if [[ -n " ${files} " ]]; then
63
- make lint-javascript-files FIX=" ${fix} " FILES=" ${files} "
63
+ make lint-javascript-files FIX=" ${fix} " FILES=" ${files} "
64
64
fi
65
65
66
66
# Lint JavaScript command-line interfaces...
67
67
file=$( echo " ${files_to_lint} " | tr ' ' ' \n' | grep ' \.js$' | grep -E ' /bin/cli$' | tr ' \n' ' ' | sed ' s/ $//' )
68
68
if [[ -n " ${file} " ]]; then
69
- make lint-javascript-files FIX=" ${fix} " FILES=" ${file} "
69
+ make lint-javascript-files FIX=" ${fix} " FILES=" ${file} "
70
70
fi
71
71
72
72
# Lint JavaScript example files:
73
73
files=$( echo " ${files_to_lint} " | tr ' ' ' \n' | grep ' /examples/.*\.js$' | tr ' \n' ' ' | sed ' s/ $//' )
74
74
if [[ -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} "
76
76
fi
77
77
78
78
# Lint JavaScript test files:
79
79
files=$( echo " ${files_to_lint} " | tr ' ' ' \n' | grep ' /test/.*\.js$' | tr ' \n' ' ' | sed ' s/ $//' )
80
80
if [[ -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} "
82
82
fi
83
83
84
84
# Lint JavaScript benchmark files:
85
85
files=$( echo " ${files_to_lint} " | tr ' ' ' \n' | grep ' /benchmark/.*\.js$' | tr ' \n' ' ' | sed ' s/ $//' )
86
86
if [[ -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} "
88
88
fi
0 commit comments