From 459ff4d650d84a977290d7f1502f327131c1ac23 Mon Sep 17 00:00:00 2001 From: Henric Trotzig Date: Fri, 2 Dec 2016 10:45:26 +0100 Subject: [PATCH] Lint before publishing I published a beta version that didn't pass linting, but I wasn't stopped from doing so. Adding a linting step to the publish flow seems like a good idea. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9154116..7cac91c 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "jest": "jest", "jest:watch": "jest --watch", "lint": "eslint --ext .js,.jsx .", - "prepublish": "npm run --silent build", + "prepublish": "npm run --silent lint && npm run --silent build", "pretest": "npm run --silent lint", "test": "npm run --silent jest", "webpack": "webpack --optimize-minimize",