Cache Typescript runs for faster checks (#19381)

This commit is contained in:
Steve Repsher 2024-01-15 09:36:26 -05:00 committed by GitHub
parent 920df03cc1
commit 64b0b64468
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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,