From a9e9fe9344c0857dd88a3d8cd356549b6dfa5e0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CJamesHenry=E2=80=9D?= Date: Thu, 29 Sep 2022 20:46:26 +0100 Subject: [PATCH] chore: fix lint errors --- core/lerna/commands/add-caching/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/lerna/commands/add-caching/index.js b/core/lerna/commands/add-caching/index.js index 05b033d8f9..6247dfa5fa 100644 --- a/core/lerna/commands/add-caching/index.js +++ b/core/lerna/commands/add-caching/index.js @@ -24,6 +24,7 @@ class AddCachingCommand extends Command { "add-caching", "The `add-caching` command is only available when using the Nx task runner" ); + // eslint-disable-next-line no-process-exit process.exit(1); } @@ -104,7 +105,8 @@ class AddCachingCommand extends Command { let nxJson = {}; try { nxJson = readJsonFile(nxJsonPath); - } catch (e) {} + // eslint-disable-next-line no-empty + } catch {} nxJson.tasksRunnerOptions = nxJson.tasksRunnerOptions || {}; nxJson.tasksRunnerOptions.default = nxJson.tasksRunnerOptions.default || {};