ESLint tooling and enforcement(#1492)

* add eslint-prettier

* add lint-staged

* ignore .eslintcache

* remove unused import

* attempt test change

* Revert "attempt test change"

This reverts commit 78d0e31d41.

* attempt to add error

* Revert "attempt to add error"

This reverts commit a5885c0942.

* add error

* create config

* add comment

* tweak glob

* Revert "add error"

This reverts commit 3187522396.

* add python error

* Revert "add python error"

This reverts commit d0b116ed15.

* lint on push + PR

* Revert "add comment"

This reverts commit efa4eb6676.

* add prettier rules to ESLint

* remove lint-diff targets
This commit is contained in:
Severiano Badajoz
2020-05-21 14:27:49 -07:00
committed by GitHub
parent 18da8911a0
commit 889b582538
9 changed files with 610 additions and 28 deletions
-9
View File
@@ -27,15 +27,6 @@ build:
lint:
npx eslint ./src/
.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)
# Development convenience methods
.PHONY: start-frontend
start-frontend: