Skip to content

Commit

Permalink
chore: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHenry committed Sep 29, 2022
1 parent 96b0404 commit a9e9fe9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/lerna/commands/add-caching/index.js
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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 || {};
Expand Down

0 comments on commit a9e9fe9

Please sign in to comment.