From 9273434a1758854f3c2274f498d3e888c9899a96 Mon Sep 17 00:00:00 2001 From: Hunter Johnston Date: Thu, 28 Mar 2024 13:02:57 -0400 Subject: [PATCH 1/2] fix: remove leftover logs --- .eslintrc.cjs | 7 +++++++ src/lib/cmdk/components/Command.svelte | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index f3410af..95c5b3b 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -1,3 +1,4 @@ +/** @type { import("eslint").Linter.Config } */ module.exports = { root: true, extends: [ @@ -69,6 +70,12 @@ module.exports = { } ] } + }, + { + files: ['*.js', '*.svelte', '*.ts'], + rules: { + 'no-console': 'error' + } } ] }; diff --git a/src/lib/cmdk/components/Command.svelte b/src/lib/cmdk/components/Command.svelte index 2efa2d9..2a2eaf4 100644 --- a/src/lib/cmdk/components/Command.svelte +++ b/src/lib/cmdk/components/Command.svelte @@ -43,7 +43,6 @@ }); function syncValueAndState(value: string | undefined) { - console.log('sync value and state'); if (value && value !== $stateStore.value) { $stateStore.value = value; } From 44d393a12640fde2d1bbc5a24c009d9a392551a4 Mon Sep 17 00:00:00 2001 From: Hunter Johnston <64506580+huntabyte@users.noreply.github.com> Date: Thu, 28 Mar 2024 13:04:06 -0400 Subject: [PATCH 2/2] add changeset --- .changeset/hungry-dolls-marry.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/hungry-dolls-marry.md diff --git a/.changeset/hungry-dolls-marry.md b/.changeset/hungry-dolls-marry.md new file mode 100644 index 0000000..2a47442 --- /dev/null +++ b/.changeset/hungry-dolls-marry.md @@ -0,0 +1,5 @@ +--- +"cmdk-sv": patch +--- + +fix: remove leftover logs