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
This commit is contained in:
Thai Tran 2016-02-16 09:39:10 -08:00
parent e8fec35f71
commit 8123d9ce34

View File

@ -23,7 +23,8 @@
"scripts": { "scripts": {
"postinstall": "if [ ! -d .venv ]; then tox -epy27 --notest; fi", "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", "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": {} "dependencies": {}
} }