From 18aaa9d175879abe09045d6022e5b6ddf1c4d910 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Tue, 28 Jul 2015 10:24:24 -0400 Subject: Adding check target to makefile to run eslint. Adding eslint to package.json --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 222d4ffe4..01986bf64 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ GOFLAGS ?= $(GOFLAGS:) BUILD_NUMBER ?= $(BUILD_NUMBER:) GO=$(GOPATH)/bin/godep go +ESLINT=web/react/node_modules/eslint/bin/eslint.js ifeq ($(BUILD_NUMBER),) BUILD_NUMBER := dev @@ -62,6 +63,10 @@ install: @cd web/react/ && npm install +check: install + @echo Running ESLint... + @$(ESLINT) web/react/components/* + test: install @mkdir -p logs @$(GO) test $(GOFLAGS) -run=$(TESTS) -test.v -test.timeout=180s ./api || exit 1 -- cgit v1.2.3-1-g7c22 From 3d94d047c00eecfaa5d61ce077aec33d6e25b3b3 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Tue, 28 Jul 2015 11:57:25 -0400 Subject: Adding rest of directories to eslint list --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 01986bf64..14a6ffc7d 100644 --- a/Makefile +++ b/Makefile @@ -66,6 +66,10 @@ install: check: install @echo Running ESLint... @$(ESLINT) web/react/components/* + @$(ESLINT) web/react/dispatcher/* + @$(ESLINT) web/react/pages/* + @$(ESLINT) web/react/stores/* + @$(ESLINT) web/react/utils/* test: install @mkdir -p logs -- cgit v1.2.3-1-g7c22