use local eslint

This commit is contained in:
Severiano Badajoz
2020-04-08 14:52:58 -07:00
parent c15d873f10
commit 8507ffb466
+1 -1
View File
@@ -30,7 +30,7 @@ lint:
.PHONY: lint-diff
lint-diff:
# Get client diff against master, find all js/jsx files, remove the client prefex, run eslinst against result
git diff --name-only --diff-filter=d origin/master...HEAD -- ../client/ | grep -E "(.*)\.(jsx|js)" | sed "s/client\///" | xargs -r npx eslint
git diff --name-only --diff-filter=d origin/master...HEAD -- ../client/ | grep -E "(.*)\.(jsx|js)" | sed "s/client\///" | xargs -r ./node_modules/.bin/eslint
# Development convenience methods