From 35e20131992269dd001ffd81f32ab53c1530811c Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 21 Nov 2019 13:13:41 -0800 Subject: [PATCH] tsconfig: Fix typescript-eslint memory usage disaster. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit typescript-eslint was using hundreds of megabytes to track `*.js` files that it shouldn’t be checking. Signed-off-by: Anders Kaseorg --- tsconfig.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tsconfig.json b/tsconfig.json index 51de28b6e2..9744b46709 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -33,6 +33,16 @@ "noFallthroughCasesInSwitch": true, }, "exclude": [ + /* Type stubs are not part of the top-level project. */ "static/js/types", + + /* Skip walking large generated directories. */ + "docs/_build", + "static/webpack-bundles", + "var", + "zulip-py3-venv", + + /* Even though allowJs defaults to false, typescript-eslint forces it to true. */ + "**/*.js", ], }