Skip to content

Commit

Permalink
refactor(lint): allowed console
Browse files Browse the repository at this point in the history
  • Loading branch information
CorentinTh committed Aug 31, 2024
1 parent c494348 commit 0c9c9ec
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/cli/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ export default antfu({
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
}],
'no-console': 'off',
},
});
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@enclosed/cli",
"type": "module",
"version": "0.0.2",
"version": "0.0.3",
"packageManager": "[email protected]",
"description": "Enclosed cli to create secure notes.",
"author": "Corentin Thomasset <[email protected]> (https://corentin.tech)",
Expand Down
1 change: 0 additions & 1 deletion packages/cli/src/config/config.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? '');
}
},
Expand Down
1 change: 0 additions & 1 deletion packages/cli/src/create-note/create-note.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 0c9c9ec

Please sign in to comment.