tweak lint-diff

This commit is contained in:
Severiano Badajoz
2020-04-01 15:11:57 -07:00
parent 738e1c4b32
commit 1ffe0680bb
+1 -1
View File
@@ -29,7 +29,7 @@ lint:
.PHONY: lint-diff
lint-diff:
$(shell LIST=`git diff-index --name-only --diff-filter=d origin/master -- client/ | grep -E "(.*)\.(jsx|js)"`; if [ $(LIST) ]; then npx eslint $(LIST); fi )
$(shell git diff-index --name-only --diff-filter=d origin/master -- ../client/ | grep -E "(.*)\.(jsx|js)" | sed "s/client\///" | xargs npx eslint)
# Development convenience methods