From 62a43576b393ac4f315f8cdc5a96954eed6a8de0 Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Thu, 26 Sep 2019 13:44:10 -0700 Subject: [PATCH] Enable eslint cache (#33619) --- .gitignore | 3 ++- Gulpfile.js | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index da243079549..64a6ca01b3a 100644 --- a/.gitignore +++ b/.gitignore @@ -91,4 +91,5 @@ tests/cases/user/create-react-app/create-react-app tests/cases/user/webpack/webpack tests/cases/user/puppeteer/puppeteer tests/cases/user/axios-src/axios-src -tests/cases/user/prettier/prettier \ No newline at end of file +tests/cases/user/prettier/prettier +.eslintcache \ No newline at end of file diff --git a/Gulpfile.js b/Gulpfile.js index 1f930e3b019..20c32e9fc4a 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -341,6 +341,8 @@ const eslint = (folder) => async () => { const args = [ "node_modules/eslint/bin/eslint", + "--cache", + "--cache-location", `${folder}/.eslintcache`, "--format", "autolinkable-stylish", "--rulesdir", "scripts/eslint/built/rules", "--ext", ".ts",