From 17a177011d3cd398a171ac12c32ae3b95831f142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20M=C3=BCller?= Date: Mon, 15 May 2017 09:57:54 +0200 Subject: [PATCH] Move linting into an npm script. Relates to #2805 --- Makefile | 3 +-- package.json | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 33408bfbad..ad8b097e4e 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,4 @@ BROWSERIFY := "node_modules/.bin/browserify" -ESLINT := "node_modules/.bin/eslint" KARMA := "node_modules/.bin/karma" MOCHA := "bin/mocha" NYC := "node_modules/.bin/nyc" @@ -34,7 +33,7 @@ clean: lint: @printf "==> [Test :: Lint]\n" - $(ESLINT) . "bin/*" + npm run lint test-node: test-bdd test-tdd test-qunit test-exports test-unit test-integration test-jsapi test-compilers test-glob test-requires test-reporters test-only test-global-only diff --git a/package.json b/package.json index f681ba3e16..a02ab9e803 100644 --- a/package.json +++ b/package.json @@ -299,6 +299,7 @@ "npm": ">= 1.4.x" }, "scripts": { + "lint": "eslint . bin/*", "test": "make test && make clean", "precoverage": "rm -rf coverage", "coverage": "COVERAGE=true npm run test",