mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-23 17:58:12 +08:00
add lint-diff and lint targets
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user