add lint-diff and lint targets

This commit is contained in:
Severiano Badajoz
2020-04-01 14:32:01 -07:00
parent fc6183b1d1
commit 86c65cfb9c
+10
View File
@@ -21,6 +21,16 @@ install:
build:
npm run build
# Formatting code
.PHONY: lint
lint:
npx eslint .
.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 )
# Development convenience methods