From 0943ff8f495e2212064b7f5cee4cd5cefbf4040a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Mon, 28 Nov 2022 15:16:19 +0100 Subject: [PATCH] Fix OOM with eslint in migrations (#2545) ## About the changes When adding a new migration, we might run out of memory. Migrations have only JS files and we're running these through TS parser. Removing TS config reference from `.eslintrc` proved to solve the issue while running local manual tests This still lints migration files but using JS syntax --- src/migrations/.eslintrc | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/migrations/.eslintrc b/src/migrations/.eslintrc index 0719e9f181..2e218bff09 100644 --- a/src/migrations/.eslintrc +++ b/src/migrations/.eslintrc @@ -5,15 +5,10 @@ "plugins": [], "rules": {}, "settings": {}, - "parserOptions": { - "project": "../../tsconfig.json" - }, + "parserOptions": {}, "overrides": [ { - "files": "*.js", - "rules": { - "@typescript-eslint/indent": "off" - } + "files": "*.js" } ] }