Move to lower layer for fixing eslint errors

This commit is contained in:
Manav Rathi
2024-06-02 17:44:29 +05:30
parent e8a3b3b299
commit 1d5f936ced
3 changed files with 4 additions and 7 deletions

View File

@@ -2,9 +2,6 @@
/* A base TSConfig for typechecking our Next.js apps and packages. */
"extends": "@/build-config/tsconfig-typecheck.json",
"compilerOptions": {
/* Also indicate expectation of a WebWorker runtime */
"lib": ["ESnext", "DOM", "DOM.Iterable", "WebWorker"],
/* Next.js insists on adding these. Sigh. */
"allowJs": true,
"incremental": true

View File

@@ -10,8 +10,8 @@
* runtime will have.
*
* In our case, we tell it that the code will run in a modern browser,
* and will have access to a latest JS (esnext) and the DOM (dom). Our
* transpiler (Next.js) will ensure that these things hold.
* and will have access to a latest JS ("ESNext") and the DOM ("DOM")
* and web workers ("WebWorker").
*
* Unlike the other individual library components (say how "esnext"
* implies "ESNext.*"), "DOM.Iterable" (the ability to iterate over DOM
@@ -21,7 +21,7 @@
* Note that we don't need to specify the `target` compilerOption, since
* tsc isn't actually generating (emitting) the JavaScript.
*/
"lib": ["ESnext", "DOM", "DOM.Iterable"],
"lib": ["ESnext", "DOM", "DOM.Iterable", "WebWorker"],
/*
* The module system to assume the generated JavaScript will use.

View File

@@ -1,4 +1,4 @@
{
"extends": "@/build-config/tsconfig-typecheck.json",
"include": ["."]
"include": [".", "../next/global-electron.d.ts"]
}