Skip to content

Commit

Permalink
Merge pull request #2807 from mochajs/npm-script-lint
Browse files Browse the repository at this point in the history
Move linting into an npm script. Relates to #2805
  • Loading branch information
Munter committed May 19, 2017
2 parents ac0c1c8 + 17a1770 commit e249434
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions 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"
Expand Down Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -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",
Expand Down

0 comments on commit e249434

Please sign in to comment.