chore: enable svelte/require-store-reactive-access rule (#11726)

### What does this PR do?

Enables the rule by removing the `off` line in eslint.config.mjs to
`error`.

### Screenshot / video of UI

<!-- If this PR is changing UI, please include
screenshots or screencasts showing the difference -->

N/A

### What issues does this PR fix or reference?

<!-- Include any related issues from Podman Desktop
repository (or from another issue tracker). -->

Closes https://github.com/podman-desktop/podman-desktop/issues/11513

### How to test this PR?

<!-- Please explain steps to verify the functionality,
do not forget to provide unit/component tests -->

N/A

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
This commit is contained in:
Charlie Drage 2025-03-19 08:38:33 -04:00 committed by GitHub
parent f9f47ec93e
commit abcd368f26
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View file

@ -269,7 +269,6 @@ export default [
'sonarjs/no-alphabetical-sort': 'off',
'svelte/no-useless-children-snippet': 'off',
'svelte/require-each-key': 'off',
'svelte/require-store-reactive-access': 'off',
'svelte/no-reactive-literals': 'error',
},
},

View file

@ -26,7 +26,7 @@ const navItems: Writable<number> = getContext('nav-items');
$: tooltipText = counter ? `${tooltip} (${counter})` : tooltip;
onMount(() => {
inSection = navItems !== undefined;
inSection = $navItems !== undefined;
navItems?.update(i => i + 1);
});
onDestroy(() => {