mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-27 15:58:12 +08:00
Add end of line marker to lint diff regexp (#1400)
This prevents json files from being linted
This commit is contained in:
+4
-1
@@ -33,7 +33,10 @@ 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\///" | $(if $(IS_DARWIN),xargs ./node_modules/.bin/eslint,xargs -r ./node_modules/.bin/eslint)
|
||||
git diff --name-only --diff-filter=d origin/master...HEAD -- ../client/ \
|
||||
| grep -E "(.*)\.(jsx|js)$$" \
|
||||
| sed "s/client\///" \
|
||||
| $(if $(IS_DARWIN),xargs ./node_modules/.bin/eslint,xargs -r ./node_modules/.bin/eslint)
|
||||
|
||||
|
||||
# Development convenience methods
|
||||
|
||||
Reference in New Issue
Block a user