summaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2016-11-23 07:09:05 +0000
committerRobert Speicher <robert@gitlab.com>2016-11-23 07:09:05 +0000
commit0676c5c7140ccf5b809eddab79b6fb78b7db0a66 (patch)
treef80459eabf22eff192e790866f53f567ba082830 /package.json
parentd0c0c75ca9568bc3ec00c341a6053623d85e6201 (diff)
parent459cd939e7a31c833858c86db6003327524800de (diff)
downloadgitlab-ce-0676c5c7140ccf5b809eddab79b6fb78b7db0a66.tar.gz
Merge branch 'eslint-html-report' into 'master'
Generate ESLint HTML report ## What does this MR do? Generate a HTML report for the linting errors that ESLint discovered (including files that contain `/* eslint-disable */`). See merge request !7374
Diffstat (limited to 'package.json')
-rw-r--r--package.json3
1 files changed, 2 insertions, 1 deletions
diff --git a/package.json b/package.json
index 3d0e21b9848..350e4cd80c9 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,8 @@
"private": true,
"scripts": {
"eslint": "eslint --ext .js,.js.es6 .",
- "eslint-fix": "eslint --fix --ext .js,.js.es6 ."
+ "eslint-fix": "npm run eslint -- --fix",
+ "eslint-report": "npm run eslint -- --format html --output-file ./eslint-report.html"
},
"devDependencies": {
"eslint": "^3.1.1",