Skip to content

Commit 17a1770

Browse files
committed
Move linting into an npm script. Relates to #2805
1 parent ac0c1c8 commit 17a1770

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
BROWSERIFY := "node_modules/.bin/browserify"
2-
ESLINT := "node_modules/.bin/eslint"
32
KARMA := "node_modules/.bin/karma"
43
MOCHA := "bin/mocha"
54
NYC := "node_modules/.bin/nyc"
@@ -34,7 +33,7 @@ clean:
3433

3534
lint:
3635
@printf "==> [Test :: Lint]\n"
37-
$(ESLINT) . "bin/*"
36+
npm run lint
3837

3938
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
4039

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@
299299
"npm": ">= 1.4.x"
300300
},
301301
"scripts": {
302+
"lint": "eslint . bin/*",
302303
"test": "make test && make clean",
303304
"precoverage": "rm -rf coverage",
304305
"coverage": "COVERAGE=true npm run test",

0 commit comments

Comments
 (0)