Skip to content

Commit

Permalink
chore: Upgrade eslint and add local cache (#1499)
Browse files Browse the repository at this point in the history
* add cache to eslint

* upgrade eslint
  • Loading branch information
shuding authored Sep 26, 2021
1 parent d8d78da commit ac82105
Show file tree
Hide file tree
Showing 3 changed files with 229 additions and 250 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
6 changes: 3 additions & 3 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 All @@ -77,7 +77,7 @@
"@typescript-eslint/eslint-plugin": "4.31.0",
"@typescript-eslint/parser": "4.31.0",
"bunchee": "1.7.1",
"eslint": "6.8.0",
"eslint": "7.32.0",
"eslint-config-prettier": "6.5.0",
"eslint-plugin-jest-dom": "3.6.5",
"eslint-plugin-react": "7.20.6",
Expand Down
Loading

0 comments on commit ac82105

Please sign in to comment.