Run eslint with caching
This reduces the time for subsequent lints significantly. e.g. for `package/frontend`, the first run takes ~10min. With the cache, every subsequent run takes only a few seconds.
This commit is contained in:
parent
3f37db1a13
commit
0a8cb21e9b
9 changed files with 11 additions and 8 deletions
|
|
@ -4,7 +4,7 @@
|
|||
"description": "Misskey TypeGenerator",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"generate": "tsx src/generator.ts && eslint ./built/**/*.ts --fix"
|
||||
"generate": "tsx src/generator.ts && eslint ./built/**/*.ts --fix --cache"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@readme/openapi-parser": "2.5.0",
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
"tsd": "tsd",
|
||||
"api": "pnpm api-extractor run --local --verbose",
|
||||
"api-prod": "pnpm api-extractor run --verbose",
|
||||
"eslint": "eslint './**/*.{js,jsx,ts,tsx}'",
|
||||
"eslint": "eslint './**/*.{js,jsx,ts,tsx}' --cache",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"lint": "pnpm typecheck && pnpm eslint",
|
||||
"jest": "jest --coverage --detectOpenHandles",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue