From 0c9c9ec4625abac69e3aa22e8d888ff62e2b5b6c Mon Sep 17 00:00:00 2001 From: Corentin Thomasset Date: Sat, 31 Aug 2024 21:08:29 +0200 Subject: [PATCH] refactor(lint): allowed console --- packages/cli/eslint.config.js | 1 + packages/cli/package.json | 2 +- packages/cli/src/config/config.command.ts | 1 - packages/cli/src/create-note/create-note.command.ts | 1 - 4 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/cli/eslint.config.js b/packages/cli/eslint.config.js index e0175daf..b21ea558 100644 --- a/packages/cli/eslint.config.js +++ b/packages/cli/eslint.config.js @@ -17,5 +17,6 @@ export default antfu({ varsIgnorePattern: '^_', caughtErrorsIgnorePattern: '^_', }], + 'no-console': 'off', }, }); diff --git a/packages/cli/package.json b/packages/cli/package.json index b5ba4a34..cc6d6233 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,7 +1,7 @@ { "name": "@enclosed/cli", "type": "module", - "version": "0.0.2", + "version": "0.0.3", "packageManager": "pnpm@9.9.0", "description": "Enclosed cli to create secure notes.", "author": "Corentin Thomasset (https://corentin.tech)", diff --git a/packages/cli/src/config/config.command.ts b/packages/cli/src/config/config.command.ts index bb42c677..70a3b06b 100644 --- a/packages/cli/src/config/config.command.ts +++ b/packages/cli/src/config/config.command.ts @@ -55,7 +55,6 @@ export const configCommand = defineCommand({ const value = getConfig({ key: String(key) }); if (value) { - // eslint-disable-next-line no-console console.log(value ?? ''); } }, diff --git a/packages/cli/src/create-note/create-note.command.ts b/packages/cli/src/create-note/create-note.command.ts index 36ae9529..bd4ad8a5 100644 --- a/packages/cli/src/create-note/create-note.command.ts +++ b/packages/cli/src/create-note/create-note.command.ts @@ -63,7 +63,6 @@ export const createNoteCommand = defineCommand({ spinner.succeed('Note created successfully'); - // eslint-disable-next-line no-console console.log(`\nNote url: ${pc.green(noteUrl)}`); } catch (error) { spinner.fail('Failed to create note');