Skip to content

Commit 62a4357

Browse files
authored
Enable eslint cache (#33619)
1 parent 500a0df commit 62a4357

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,5 @@ tests/cases/user/create-react-app/create-react-app
9191
tests/cases/user/webpack/webpack
9292
tests/cases/user/puppeteer/puppeteer
9393
tests/cases/user/axios-src/axios-src
94-
tests/cases/user/prettier/prettier
94+
tests/cases/user/prettier/prettier
95+
.eslintcache

Gulpfile.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,8 @@ const eslint = (folder) => async () => {
341341

342342
const args = [
343343
"node_modules/eslint/bin/eslint",
344+
"--cache",
345+
"--cache-location", `${folder}/.eslintcache`,
344346
"--format", "autolinkable-stylish",
345347
"--rulesdir", "scripts/eslint/built/rules",
346348
"--ext", ".ts",

0 commit comments

Comments
 (0)