Skip to content

Commit 9166bd3

Browse files
committed
makefile: fix exit code of lint target on failure
1 parent e4fb94a commit 9166bd3

File tree

1 file changed

+16
-20
lines changed

1 file changed

+16
-20
lines changed

Makefile

+16-20
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,22 @@ clean:
2626

2727
.PHONY: lint
2828
lint:
29-
@if [ $(shell node --version | tr -d v | cut -d . -f 1) -lt 6 ] ; then \
30-
echo 'ESLint requires a recent version of Node' ; \
31-
else \
32-
$(ESLINT) \
33-
--config node_modules/sanctuary-style/eslint-es3.json \
34-
--global $$ \
35-
--global define \
36-
--global exports \
37-
--global module \
38-
--global self \
39-
--rule 'max-len: [off]' \
40-
--rule 'no-plusplus: [off]' \
41-
-- base64.js ; \
42-
$(ESLINT) \
43-
--config node_modules/sanctuary-style/eslint-es3.json \
44-
--env node \
45-
--global describe \
46-
--global it \
47-
-- test/*.js ; \
48-
fi
29+
$(ESLINT) \
30+
--config node_modules/sanctuary-style/eslint-es3.json \
31+
--global $$ \
32+
--global define \
33+
--global exports \
34+
--global module \
35+
--global self \
36+
--rule 'max-len: [off]' \
37+
--rule 'no-plusplus: [off]' \
38+
-- base64.js
39+
$(ESLINT) \
40+
--config node_modules/sanctuary-style/eslint-es3.json \
41+
--env node \
42+
--global describe \
43+
--global it \
44+
-- test/*.js
4945

5046

5147
.PHONY: release-major release-minor release-patch

0 commit comments

Comments
 (0)