From d07fa43f097a326d9945cf256cf5b4e5ce02eb18 Mon Sep 17 00:00:00 2001 From: wooorm Date: Thu, 19 Jun 2014 13:10:45 +0200 Subject: [PATCH] Split the lint task into lint-api, lint-test, and lint-style --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d869b34..d2afd42 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,10 @@ "scripts": { "test": "node_modules/.bin/_mocha --reporter spec --check-leaks -u exports spec/retext-porter-stemmer.spec.js", "test-travis": "node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly -- --reporter spec --check-leaks -u exports spec/retext-porter-stemmer.spec.js", - "lint": "node_modules/.bin/eslint index.js --env node --env browser --rule 'quotes: [2, single]' && node_modules/.bin/eslint spec/retext-porter-stemmer.spec.js --env node --env mocha --rule 'quotes: [2, single]' && node_modules/.bin/jscs index.js spec/retext-porter-stemmer.spec.js --reporter=inline", + "lint": "npm run-script lint-api && npm run-script lint-test && npm run-script lint-style", + "lint-api": "node_modules/.bin/eslint index.js --env node --env browser --rule 'quotes: [2, single]'", + "lint-test": "node_modules/.bin/eslint spec/retext-porter-stemmer.spec.js --env node --env mocha --rule 'quotes: [2, single]'", + "lint-style": "node_modules/.bin/jscs index.js spec/retext-porter-stemmer.spec.js --reporter=inline", "coverage": "node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -- spec spec/retext-porter-stemmer.spec.js", "complexity": "node_modules/.bin/cr -l --maxcyc 20 --format minimal --silent index.js", "make": "npm run-script lint && npm run-script complexity && npm run-script coverage"