mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-04 02:48:13 +08:00
add lint-diff and lint targets
This commit is contained in:
@@ -21,6 +21,16 @@ install:
|
|||||||
build:
|
build:
|
||||||
npm run 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
|
# Development convenience methods
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user