Skip to content

Commit e25428c

Browse files
authored
eslint: use cache (#3218)
This significantly speeds up eslint after first run. Co-authored-by: alxndrsn <alxndrsn>
1 parent 81e2ff0 commit e25428c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ package-lock.json
77
*.swp
88
dist
99
.DS_Store
10+
/.eslintcache
1011
.vscode/
1112
manually-test-on-heroku.js

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"docs:start": "cd docs && yarn start",
1818
"pretest": "yarn build",
1919
"prepublish": "yarn build",
20-
"lint": "eslint '*/**/*.{js,ts,tsx}'"
20+
"lint": "eslint --cache '*/**/*.{js,ts,tsx}'"
2121
},
2222
"devDependencies": {
2323
"@typescript-eslint/eslint-plugin": "^7.0.0",

0 commit comments

Comments
 (0)