Skip to content

Commit

Permalink
fix: remove leftover logs & error on lint if logs exist (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte authored Mar 28, 2024
1 parent 713ac80 commit cc7394d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/hungry-dolls-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"cmdk-sv": patch
---

fix: remove leftover logs
7 changes: 7 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type { import("eslint").Linter.Config } */
module.exports = {
root: true,
extends: [
Expand Down Expand Up @@ -69,6 +70,12 @@ module.exports = {
}
]
}
},
{
files: ['*.js', '*.svelte', '*.ts'],
rules: {
'no-console': 'error'
}
}
]
};
1 change: 0 additions & 1 deletion src/lib/cmdk/components/Command.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
});
function syncValueAndState(value: string | undefined) {
console.log('sync value and state');
if (value && value !== $stateStore.value) {
$stateStore.value = value;
}
Expand Down

0 comments on commit cc7394d

Please sign in to comment.