diff --git a/package.json b/package.json index 0271f59bf6..ef06329143 100644 --- a/package.json +++ b/package.json @@ -12,11 +12,16 @@ "start": "babel-node server/server.js", "prestart-production": "bower cache clean && bower install && gulp build", "start-production": "node pm2Start", - "lint": "eslint --ext=.js,.jsx .", + "lint": "npm run lint-js && npm run lint-json", "lint-challenges": "jsonlint -q seed/challenges/*.json", "lint-nonprofits": "jsonlint -q seed/nonprofits.json", + "lint-server": "jsonlint -q server/*.json", + "lint-resources": "jsonlint -q server/resources/*.json", + "lint-utils": "jsonlint -q server/utils/*.json", + "lint-js": "eslint --ext=.js,.jsx server/ common/models common/utils config/", + "lint-json": "npm run lint-server && npm run lint-nonprofits && npm run lint-challenges && npm run lint-resources && npm run lint-utils", "test-challenges": "babel-node seed/test-challenges.js | tnyan", - "pretest": "npm run lint-challenges && npm run lint-nonprofits", + "pretest": "npm run lint", "test": "npm run test-challenges" }, "license": "(BSD-3-Clause AND CC-BY-SA-4.0)",