Skip to content

Commit 35e2013

Browse files
andersktimabbott
authored andcommitted
tsconfig: Fix typescript-eslint memory usage disaster.
typescript-eslint was using hundreds of megabytes to track `*.js` files that it shouldn’t be checking. Signed-off-by: Anders Kaseorg <[email protected]>
1 parent bf117fe commit 35e2013

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tsconfig.json

+10
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@
3333
"noFallthroughCasesInSwitch": true,
3434
},
3535
"exclude": [
36+
/* Type stubs are not part of the top-level project. */
3637
"static/js/types",
38+
39+
/* Skip walking large generated directories. */
40+
"docs/_build",
41+
"static/webpack-bundles",
42+
"var",
43+
"zulip-py3-venv",
44+
45+
/* Even though allowJs defaults to false, typescript-eslint forces it to true. */
46+
"**/*.js",
3747
],
3848
}

0 commit comments

Comments
 (0)