no-navigation-without-resolve does not allow fragment only

#1537

Development PRs

Issue

needs reproStale
Closed at Aug 14, 2026, 3:40 AM
A
al3xnag
May 29, 2026, 7:04 AM

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.

What version of ESLint are you using?

10.4.0

What version of eslint-plugin-svelte are you using?

3.17.1

What did you do?

import { replaceState } from '$app/navigation';
...
replaceState(`#hash`, {}); // Unexpected replaceState() call without resolve(). (eslint svelte/no-navigation-without-resolve)

What did you expect to happen?

No lint error

What actually happened?

Unexpected replaceState() call without resolve(). (eslint svelte/no-navigation-without-resolve)

Link to GitHub Repo with Minimal Reproducible Example

Will provide later if needed.

Additional comments

No response