Cache Typescript runs for faster checks (#19381)
This commit is contained in:
parent
920df03cc1
commit
64b0b64468
|
@ -42,6 +42,7 @@ jobs:
|
|||
path: |
|
||||
node_modules/.cache/prettier
|
||||
node_modules/.cache/eslint
|
||||
node_modules/.cache/typescript
|
||||
key: lint-${{ github.sha }}
|
||||
restore-keys: lint-
|
||||
- name: Run eslint
|
||||
|
|
|
@ -10,6 +10,9 @@
|
|||
"resolveJsonModule": true,
|
||||
// Babel handles transpiling and no need for declaration files
|
||||
"noEmit": true,
|
||||
// Caching
|
||||
"incremental": true,
|
||||
"tsBuildInfoFile": "node_modules/.cache/typescript/.tsbuildinfo",
|
||||
// Type checking options
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
|
|
Loading…
Reference in New Issue