eslint: add strict await checking: (#684)

- require await / void / catch for promises
- don't allow unnecessary await
This commit is contained in:
Ilya Kreymer 2024-09-06 16:24:18 -07:00 committed by GitHub
parent 9cacae6bb6
commit b42548373d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 79 additions and 46 deletions

8
tsconfig.eslint.json Normal file
View file

@ -0,0 +1,8 @@
{
"compilerOptions": {
"noEmit": true
},
"extends": "./tsconfig.json",
"include": ["**/*.ts", "**/*.js", ".*.js"],
"exclude": ["dist", "configs", "crawls"]
}