From 8123d9ce34aa6e6bf034b0c27b2afc49bc0dc19b Mon Sep 17 00:00:00 2001 From: Thai Tran Date: Tue, 16 Feb 2016 09:39:10 -0800 Subject: [PATCH] Running eslint in quiet mode with color We have a ton of warnings. This makes it difficult to locate linting errors. This patch adds an npm script for developers to run eslint in quiet mode with color. Change-Id: Ie1ecc201d025c428d15b310b78e9c343a341aed3 Closes-Bug: #1546736 --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index aa0219f8dd..ae015bdd26 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,8 @@ "scripts": { "postinstall": "if [ ! -d .venv ]; then tox -epy27 --notest; fi", "test": "karma start horizon/karma.conf.js --single-run && karma start openstack_dashboard/karma.conf.js --single-run", - "lint": "eslint --no-color openstack_dashboard/static horizon/static openstack_dashboard/dashboards/*/static" + "lint": "eslint --no-color openstack_dashboard/static horizon/static openstack_dashboard/dashboards/*/static", + "lintq": "eslint --quiet openstack_dashboard/static horizon/static openstack_dashboard/dashboards/*/static" }, "dependencies": {} }