Skip to content

Commit

Permalink
add cache to eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding committed Sep 26, 2021
1 parent d8d78da commit 3e3a1b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dist
.DS_Store
.idea
.vscode
.eslintcache
examples/**/yarn.lock
package-lock.json
tsconfig.tsbuildinfo
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"publish-beta": "yarn publish --tag beta",
"types:check": "tsc --noEmit --project tsconfig.check.json",
"format": "prettier --write ./**/*.{ts,tsx}",
"lint": "eslint . --ext .ts,.tsx",
"lint": "eslint . --ext .ts,.tsx --cache",
"lint:fix": "yarn lint --fix",
"test": "jest",
"register": "yarn link && cd node_modules/react && yarn link",
Expand All @@ -62,7 +62,7 @@
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix",
"eslint --fix --cache",
"prettier --write",
"git add"
]
Expand Down

0 comments on commit 3e3a1b8

Please sign in to comment.