diff --git a/.gitignore b/.gitignore index da24307954..64a6ca01b3 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 1f930e3b01..20c32e9fc4 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",