Skip to content

Commit ea48a3b

Browse files
authored
chore: disable svelte/no-navigation-without-resolve in history update (#84)
1 parent 0067894 commit ea48a3b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/sanity-sveltekit/src/lib/visual-editing/VisualEditingComponent.svelte

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
update: (update) => {
2828
if (update.type === 'push' || update.type === 'replace') {
2929
navigatingFromUpdate = true;
30+
// Seems to be a problematic eslint rule as of 30/09/25:
31+
// https://github.com/sveltejs/eslint-plugin-svelte/issues?q=is%3Aissue%20no-navigation-without-resolve
32+
// eslint-disable-next-line svelte/no-navigation-without-resolve
3033
goto(update.url, { replaceState: update.type === 'replace' });
3134
} else if (update.type === 'pop') {
3235
history.back();

0 commit comments

Comments
 (0)