Skip to content

Commit

Permalink
fix: disable prefer-const rule for svelte files as it does not handle…
Browse files Browse the repository at this point in the history
… deriveds well
  • Loading branch information
dominikg committed Oct 23, 2024
1 parent 1491239 commit 2a7b904
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ export default [
},

rules: {
'n/no-missing-import': 'off' // n doesn't know some vite specifics or monorepo imports.
'n/no-missing-import': 'off', // n doesn't know some vite specifics or monorepo imports.
'prefer-const': 'off' // this turns let foo = $derived into a const otherwise
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
let hold_start_ts = $state();
const show_toggle = $derived(
let show_toggle = $derived(
options.showToggleButton === 'always' || (options.showToggleButton === 'active' && enabled)
);
Expand Down

0 comments on commit 2a7b904

Please sign in to comment.