From 070e08a4f912e5680af0e8cf6ab76beded60ce95 Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Mon, 18 May 2020 10:25:49 +0800 Subject: [PATCH] - npm/Linting: Add `--cache` to speed up subsequent linting --- .gitignore | 1 + CHANGES.md | 1 + package.json | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 9320273a..3e512014 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ mochawesome-report mochawesome.json .vscode +.eslintcache diff --git a/CHANGES.md b/CHANGES.md index 65fef4be..9ad85e26 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -92,6 +92,7 @@ - npm: Rename open script to open-tests, and add `open` script for opening instance of svgedit - npm: Ensure starting server for open scripts +- npm/Linting: Add `--cache` to speed up subsequent linting - npm: Fix scripts for Windows development (needed for building docs and instrumenting) - npm: Update scripts to reflect removal of `all_tests.html`; diff --git a/package.json b/package.json index 45e0d4b7..25821d5f 100644 --- a/package.json +++ b/package.json @@ -53,8 +53,8 @@ "copy": "copyfiles -f node_modules/load-stylesheets/dist/index-es.js editor/external/load-stylesheets && copyfiles -f node_modules/jamilih/dist/jml-es.js editor/external/jamilih && copyfiles -f node_modules/query-result/esm/index.js editor/external/query-result/esm && copyfiles -f node_modules/qr-manipulation/dist/index-es.js editor/external/qr-manipulation/dist && copyfiles -f node_modules/stackblur-canvas/dist/stackblur-es.js editor/external/stackblur-canvas/dist && copyfiles -f node_modules/regenerator-runtime/runtime.js editor/external/regenerator-runtime && copyfiles -f \"node_modules/core-js-bundle//minified*\" editor/external/core-js-bundle && copyfiles -f \"node_modules/underscore/underscore-*\" editor/jspdf && copyfiles -f \"node_modules/deparam/dist/deparam.esm.js\" editor/external/deparam", "remark": "remark -q -f .", "build-html": "babel-node --plugins @babel/plugin-transform-modules-commonjs build/build-html.js", - "eslint-fix": "eslint --fix --ext js,md,html .", - "eslint": "eslint --ext js,md,html .", + "eslint-fix": "eslint --cache --fix --ext js,md,html .", + "eslint": "eslint --cache --ext js,md,html .", "rollup": "rollup -c", "build-by-config": "rollup -c rollup-config.config.js", "prep-no-core-rollup": "run-s eslint build-html build-by-config",