From deb10011d1b5e3df84b7d13284ea55b07dd62b63 Mon Sep 17 00:00:00 2001 From: Jon Jensen Date: Mon, 25 Jul 2022 14:12:41 -0600 Subject: [PATCH] fix: linting (#75) --- lib/index.js | 2 ++ scripts/example.js | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 8c2b181..c58f1fc 100644 --- a/lib/index.js +++ b/lib/index.js @@ -296,6 +296,7 @@ class Config { // might be a security hazard, which was the intention. try { this.setCredentialsByURI(reg, creds) + // eslint-disable-next-line no-empty } catch (_) {} process.emit('timeEnd', 'config:load:credentials') @@ -654,6 +655,7 @@ class Config { // saved back to the .npmrc file, so we're good. try { this.setCredentialsByURI(reg, creds) + // eslint-disable-next-line no-empty } catch (_) {} } diff --git a/scripts/example.js b/scripts/example.js index d01cede..bbb2992 100644 --- a/scripts/example.js +++ b/scripts/example.js @@ -39,4 +39,5 @@ config.load().then(async () => { } } console.log('argv:', { raw: config.argv, parsed: config.parsedArgv }) -}) + return undefined +}).catch(() => {})