feat(no-navigation-without-resolve): skip unknown URLs by default and add strict mode
#1651
Closing issues
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?
9.34.0
What version of eslint-plugin-svelte are you using?
3.12.0
What did you do?
Resolved links in a list are not detected as resolved.
Minimal reproduction:
<script lang="ts">
import { resolve } from '$app/paths';
const works = resolve(`/`);
const notWorkingList = [
{ title: 'Home', url: resolve(`/`) },
{ title: 'Clients', url: resolve(`/clients`) },
];
</script>
<!-- ā
works as expected -->
<a href={works}>Go to Home</a>
{#each notWorkingList as item (item.title)}
<!-- ā Found a link with a url that isn't resolved. -->
<a href={item.url}>{item.title}</a>
{/each}
This also doesn't work:
<script lang="ts">
import { resolve } from '$app/paths';
const notWorkingList = [
{ title: 'Home', url: `/` },
{ title: 'Clients', url: `/clients` },
];
</script>
{#each notWorkingList as item (item.title)}
<!-- ā Argument of type '[string]' is not assignable to parameter of type '[route: "/"] | [route: "/clients"] | ... -->
<a href={resolve(item.url)}>{item.title}</a>
{/each}
What did you expect to happen?
Already resolved pathnames are detected whether they are in a list or not.
What actually happened?
Error: Found a link with a url that isn't resolved.eslintsvelte/no-navigation-without-resolve
Link to GitHub Repo with Minimal Reproducible Example
Will provide later if needed.
Additional comments
Related question: How to handle dynamic values like the pushState when shallow routing?
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?
9.34.0
What version of eslint-plugin-svelte are you using?
3.12.1
What did you do?
Configuration
// ESLint flat config for SvelteKit + TypeScript + Prettier // Migrated from .eslintrc.cjs to eslint.config.js (Flat Config)import js from "@eslint/js"; import eslintConfigPrettier from "eslint-config-prettier/flat"; import svelte from "eslint-plugin-svelte"; import globals from "globals"; import svelteConfig from "./svelte.config.js";
// Use the typescript-eslint aggregator for flat config presets // (requires devDependency: "typescript-eslint") import tseslint from "typescript-eslint";
export default [ // Ignore generated and build artifacts { ignores: [ // migrated from .eslintignore ".DS_Store", "node_modules", "build", ".svelte-kit", "package", ".env", ".env.*", "pnpm-lock.yaml", "package-lock.json", "yarn.lock", // additional "dist", ".vite", "drizzle", "supabase//migrations/" ] },
// Base language options and globals
{
languageOptions: {
ecmaVersion: 2020,
sourceType: "module",
globals: {
...globals.browser,
...globals.node,
// Svelte built-in types
$$Generic: "readonly",
App: "readonly"
}
}
},
// Core JS recommended rules
js.configs.recommended,
// TypeScript rules (no type-aware rules by default)
...tseslint.configs.recommended,
// Svelte plugin recommended rules for Svelte files
...svelte.configs["flat/recommended"],
{
files: ["**/*.svelte", "**/*.svelte.ts", "**/*.svelte.js"],
languageOptions: {
parserOptions: {
// Ensure TS within <script lang="ts"> is parsed
parser: tseslint.parser,
projectService: true,
extraFileExtensions: [".svelte"],
// Pass through SvelteKit config for better rule behavior
svelteConfig
}
}
},
// Turn off formatting-related Svelte rules to avoid conflicts with Prettier
...svelte.configs["flat/prettier"],
// Project-wide rule tweaks
{
rules: {
"require-yield": "off",
// disabled because it doesn't support search params
"svelte/no-navigation-without-resolve": "off"
}
},
// Keep Prettier last to disable conflicting stylistic rules
eslintConfigPrettier
];
<a
href={`/?redirect=${encodeURIComponent(`${page.url.pathname}${page.url.search}`)}`}
class="bg-base-200/50 text-base-content hover:bg-base-300 flex h-12 items-center gap-2 rounded-lg p-2 transition-colors"
>
<span class="flex h-full flex-1 items-center justify-center font-semibold">Sign In</span>
</a>
What did you expect to happen?
I expect to be able to use search params in links and goto without either TS or eslint complaining.
What actually happened?
As far as I can tell, there's no way to make this href work such that it satisfies the resolve() type and the no-navigation-without-resolve rule.
Link to GitHub Repo with Minimal Reproducible Example
eslint complains:
href={`/?redirect=${encodeURIComponent(`${page.url.pathname}${page.url.search}`)}`}
href={resolve("/")+`?redirect=${encodeURIComponent(`${page.url.pathname}${page.url.search}`)}`}
typescript complains:
href={resolve(`/?redirect=${encodeURIComponent(`${page.url.pathname}${page.url.search}`)}`)}
Additional comments
The only way to make it work is to assert the type:
href={resolve(`/?redirect=${encodeURIComponent(`${page.url.pathname}${page.url.search}`)}` as Pathname & {})}
The same problem also occurs for hash (#) urls.
I think href and goto accepting any of the following should help:
type Href = ResolvedPathname || `${ResolvedPathname}?${string}` || `${ResolvedPathname}#${string}`Description
Since no-navigation-without-resolve is now in recommended (thx to #1308) it's triggering some discussions in different places.
In sv -> sveltejs/cli#702
About tutorial -> #1308 (comment)
Here 1 -> #1327
Here 2 -> #1319
Maybe, at the moment, the default config is a bit too aggressive. What do you think about relaxing it a bit like:
{
"svelte/no-navigation-without-resolve": [
"error",
{
"ignoreGoto": false,
"ignoreLinks": false,
"ignoreLinks": true,
"ignorePushState": false,
"ignoreReplaceState": false
}
]
}
Let me know
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?
latest
What version of eslint-plugin-svelte are you using?
master
What did you do?
<script>
const one = new URL("https://svelte.dev");
const two = new URL("/blog", "https://svelte.dev");
</script>
<a href={one.href}>One</a>
<a href={two.href}>Two</a>
<a href={one.toString()}>One</a>
<a href={two.toString()}>Two</a>
<a href={one}>One</a> <!-- Not 100% sure this calls toString -->
<a href={two}>Two</a> <!-- Not 100% sure this calls toString -->
What did you expect to happen?
No error
What actually happened?
Error
Link to GitHub Repo with Minimal Reproducible Example
Will make a PR
Additional comments
No response
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.0.3
What version of eslint-plugin-svelte are you using?
3.15.1
What did you do?
// eslint.config.js
import prettier from 'eslint-config-prettier';
import path from 'node:path';
import { includeIgnoreFile } from '@eslint/compat';
import js from '@eslint/js';
import svelte from 'eslint-plugin-svelte';
import { defineConfig } from 'eslint/config';
import globals from 'globals';
import ts from 'typescript-eslint';
import svelteConfig from './svelte.config.js';
const gitignorePath = path.resolve(import.meta.dirname, '.gitignore');
export default defineConfig(
includeIgnoreFile(gitignorePath),
js.configs.recommended,
...ts.configs.recommended,
...svelte.configs.recommended,
prettier,
...svelte.configs.prettier,
{
languageOptions: { globals: { ...globals.browser, ...globals.node } },
rules: {
'no-undef': 'off'
}
},
{
files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'],
languageOptions: {
parserOptions: {
projectService: true,
extraFileExtensions: ['.svelte'],
parser: ts.parser,
svelteConfig
}
}
}
);
<!-- src/routes/+layout.svelte (generated by sv create) -->
<script lang="ts">
import { page } from '$app/state';
import { locales, localizeHref } from '$lib/paraglide/runtime';
import './layout.css';
import favicon from '$lib/assets/favicon.svg';
let { children } = $props();
</script>
<svelte:head><link rel="icon" href={favicon} /></svelte:head>
{@render children()}
<div style="display:none">
{#each locales as locale} <!-- <-- also missing `(locale)` here, but that's manually very easy fixable -->
<a href={localizeHref(page.url.pathname, { locale })}>{locale}</a>
{/each}
</div>
What did you expect to happen?
localizeHref() from @inlang/paraglide-js should be recognized as a valid navigation helper (like resolve()), or the scaffolded template should use a pattern that satisfies the rule. This is the default code generated by sv create with the Paraglide addon ā it errors out of the box with no user modifications.
What actually happened?
/src/routes/+layout.svelte
15:6 error Unexpected href link without resolve() svelte/no-navigation-without-resolve
Wrapping with resolve() from $app/paths causes a TypeScript error because localizeHref() returns string, not the expected "/" | `/${string}/` type
Link to GitHub Repo with Minimal Reproducible Example
bun x [email protected] create --template minimal --types ts --add prettier eslint vitest="usages:unit,component" playwright tailwindcss="plugins:typography,forms" sveltekit-adapter="adapter:auto" devtools-json paraglide="languageTags:en, es+demo:no" mcp="ide:other+setup:remote" --install bun .
Additional comments
No response
What did you do?
<a href="/file.pdf">link</a>
<a href={asset("/file.pdf")}>link</a>
Problem
Sometimes, it's references a static asset, not a path. But there's no indication the user should use asset in the rule description.
Potential solutions
rename no-navigation-without-resolve to:
require-path-validationno-pathname-without-validation
add to the rules description to use asset
add another rule
no-pathname-without-asset
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?
9.39.5
What version of eslint-plugin-svelte are you using?
3.23.1
What did you do?
Configuration
import svelte from 'eslint-plugin-svelte';
export default [
...svelte.configs.recommended,
{
files: ['**/*.svelte'],
rules: { 'svelte/no-navigation-without-resolve': 'error' }
}
];
<script>
import { goto, pushState, replaceState } from '$app/navigation';
pushState('', {});
replaceState('', {});
goto('', { shallow: true, state: {} });
goto('', { shallow: true, replace: true, state: {} });
</script>
SvelteKit 3 deprecates pushState / replaceState in favour of goto(url, { state, shallow: true }) / goto(url, { state, shallow: true, replace: true }) (see the @deprecated notes in @sveltejs/kit/types/index.d.ts). The rule accepts an empty URL for pushState('') / replaceState(''), which the rule docs list as valid shallow routing, but reports the same call written the way Kit 3 recommends.
What did you expect to happen?
No errors: the two goto calls are the Kit 3 replacements for the pushState / replaceState calls above them, which the rule already accepts.
What actually happened?
src/Repro.svelte
6:7 error Unexpected goto() call without resolve() svelte/no-navigation-without-resolve
7:7 error Unexpected goto() call without resolve() svelte/no-navigation-without-resolve
ā 2 problems (2 errors, 0 warnings)
Link to GitHub Repo with Minimal Reproducible Example
https://github.com/jose-manuel-silva/repro-eslint-goto-shallow
Additional comments
In the source, checkGotoCall passes {} to isValueAllowed while checkShallowNavigationCall passes { allowEmpty: true }, and goto's options argument is never read. Same on main (90d7b09). Draft #1605 keeps allowEmpty limited to pushState / replaceState, so it doesn't change this. A possible fix: pass { allowEmpty: true } in checkGotoCall when the second argument is an object literal with shallow: true (or allow '' for goto in general, since it resolves to the current URL). @sveltejs/kit 3.1.0, svelte 5.57.2. Related: #1481.
Description
Unexpected href link without resolve(). tells users to wrap the href in resolve() but that's not right for paths outside the SvelteKit app. A clearer error message would explain that same-origin links such as /admin, which are not part of the SvelteKit app, should be marked as external. This is currently only mentioned in the docs, so folks may get confused seeing this error message.
Proposal
linkWithoutResolve:Links to routes in this app should use resolve() from '$app/paths'. If the link points outside this app (another site, or a path served by a different app), add rel="external".gotoWithoutResolve/pushStateWithoutResolve/replaceStateWithoutResolve:Navigation to routes in this app should use resolve() from '$app/paths'. To navigate outside this app, use window.location.- (Optional, TS only) When the href is a string literal that doesn't match any route in
$app/types, report a dedicated message, e.g.'/admin' is not a route in this app. If it belongs to another app, add rel="external"; otherwise check for a typo.
Related: #1481
Pull request
Rebuilds svelte/no-navigation-without-resolve to check statically identifiable URL patterns while skipping unknown values by default. The new strict option also reports values the analysis cannot verify.
This is a base-path navigation policy check, not proof that a URL is broken: the rule does not know the deployment origin or routing configuration.
Docs: no-navigation-without-resolve.md
Behavior
- Check links,
<area>, SVG<a>, form actions and submit-controlformaction, plusgoto(),pushState(),replaceState(),preloadData()andpreloadCode(). - Accept query/hash-only destinations, empty URLs,
page.url, query/hash suffixes afterresolve(), and nullableResolvedPathnamevalues in URL-taking sinks. Relative URLs usually keep the base path, so they are reported only withstrict(orallowRelativePaths: false). - Respect form ownership (including explicit
formattributes), submit-control types and effectiveformmethod; skip non-submitting controls and dialog submissions. Therel="external"exemption for links/forms expresses lint policy; it does not guarantee that SvelteKit routing oruse:enhanceis bypassed. - HTTP(S) and protocol-relative URLs in navigation calls may be same-origin: skip them by default and report them as unverifiable with
strict. Report non-HTTP(S) URLs in these calls. - Check only the supported first
preloadCode()argument: a root-relative pathname on Kit 2, a route ID on Kit 3. The pathname requirement is not relaxed byallowRelativePaths. - Follow variables, reassignments,
$state(),$derived(),$props()defaults, arrays, objects,{#each}and declared TypeScript literal types. Bound recursive evaluation, handle empty-string fallbacks and null/undefined defaults, and verify bindings before treating calls as read-only. - Provide targeted diagnostics and
resolve()/asset()suggestions. Run only on SvelteKit 2.26+; deprecateignoreGoto,ignoreLinks,ignorePushStateandignoreReplaceState.
The rule documentation describes accepted patterns, strict-mode behavior and analysis limitations. One minor changeset covers the change.
Specification checks
Rechecked SvelteKit's , and , together with the Kit 2.26 implementation for version-specific behavior.
Validation
- Full plugin test suite: 1,710 passing. TypeScript, ESLint and formatting checks pass.
Real-project check
I ran the final rule (31948b7c) on 55 popular SvelteKit repositories, without type information. Each project used SvelteKit 2.70.3 or 3.1.1, matching its declared major version (pluja/whishper uses SvelteKit 1, so the rule does not run there).
- Default mode: 1,698 reports. All are root-relative paths such as
href="/about"orgoto('/login'). 1,674 have the path written on the reported line, and I checked all 24 others by hand: they hold literal paths like`/trail/view/${id}`. The only false positive found (base || '/'in huggingface/chat-ui) is fixed in this PR. - Existing
eslint-disablecomments: these repositories have 155 comments that disable this rule. 152 of those lines are no longer reported. The other 3 are root-relative paths. One of them is a link to a backend API, and the message suggestsrel="external"for that case. - Current rule (
main,8c8a881e): 3,151 reports on the same repositories, with the same setup. - Strict mode: 3,034 reports. The extra reports are unknown values (by design) and links with spread attributes.
- Not app code: most reports in
sveltejs/kit(test apps) andsveltejs/svelte.dev(tutorial apps) come from code that is not linted in practice. - Private app: I also ran the rule with type information on a large private SvelteKit monorepo (5 apps). Default mode gives 30 reports, all root-relative literals. The current rule gives 205 reports there, and at least 107 of them are false positives.
- No crashes.
Repositories
Issues
Fixes #1314, fixes #1327, fixes #1353, fixes #1487, fixes #1492, fixes #1502, fixes #1609, fixes #1615
- #1526: by design, unknown
data.pathis reported only withstrict; declared literal types can make a value statically identifiable. - #1524 (
redirect()): not included. Waiting for sveltejs/kit#17623. - Not covered: #1324 (
<link>), #1352 (custom resolve functions; unknown results are skipped in default mode).
š¦ Changeset detected
Latest commit: 31948b7
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 1 package
| Name | Type |
|---|---|
| eslint-plugin-svelte | Minor |
Not sure what this means? .
Click here if you're a maintainer who wants to add another changeset to this PR
Try the Instant Preview in Online Playground
Install the Instant Preview to Your Local
npm i https://pkg.pr.new/eslint-plugin-svelte@31948b7
Published Instant Preview Packages:
- eslint-plugin-svelte:
Hi, just quickly posting from my phone, so not a thorough answer.
I know I am not a maintainer and therefore do not have any sort of final say. However, as the author of the rule, I am strongly against this PR. It is in some places outright incorrect, but more than that, the whole premise is wrong IMO. As it currently stands (and I know there was a lot of issues over time, sorry about them), the rule should avoid almost every false positive once the open PRs are merged (I'll get to your review comments on them over the next few days, thank you for them). Moreover, the rule guides users towards correct patterns for navigation.
This PR breaks that and chooses not reporting genuine issues and incorrect patterns (even if the new issues introduced here were fixed). That would make the rule mostly useless IMO.
I'd much prefer to actually get the current version of the rule over the finish line. If all current PRs get fixed and merged, I think we'll be 99% there.
Hi @marekdedic, thank you for the quick reply, and thank you for all your work on this rule. I understand this PR is not easy to see as the author, and I really respect the effort you have put into it.
Let me explain why I think a change of direction is needed.
False positives are worse than false negatives. A missed report costs nothing. A wrong report teaches users to ignore the rule or turn it off. This is also what Google found when building static analysis tools ():
"If a tool wastes developer time with false positives and low-priority issues, developers will lose faith and ignore results."
The data shows this is happening now.
- This rule has 28 issues, more than any other recommended rule. The rule itself is not especially hard. For example,
no-unused-propsis much more complex, but has 17 issues, and most came in its first month. New issues for this rule are still coming in every few months. - GitHub code search finds about 2,200
eslint.configfiles that turn this rule'off'. For other recommended rules, the highest isno-at-html-tagswith about 820, andno-unused-propshas about 30. - Large projects turn it off, for example immich and shadcn-svelte. On immich, the current rule gives 156 reports. Most of them are calls like
goto(Route.photos()), whereRouteis the app's own URL helper. This PR gives 7, and all of them are literal paths likegoto('/people'). - I also gave up using this rule in my own projects.
So I do not think fixing the open issues gets us to 99%. Most users do not file an issue. They just turn the rule off. The open issues are only a small part of the problem.
Why I think fixing the open issues is not enough. The current rule reports everything it cannot prove to be resolved. Real apps, especially large SaaS apps, build URLs in many ways: URL helpers, i18n functions, data from load, props, shared constants, and so on. The rule cannot understand all of them, so each new pattern becomes a new false positive and a new issue. In the end, users only add eslint-disable comments. I think the problem is the starting point, not the individual cases.
What this PR does. By default, it reports only URLs that are proven to be wrong. For users who want the strict check, the strict option reports everything that is not proven to be resolved. To be honest, I think strict is practical mainly for simple projects, but it keeps the current behavior available for people who want it.
You said some parts are outright incorrect. Could you share the cases when you have time? I would like to fix them.
Hi, thanks for the reply.
I understand that FPs are worse than FNs. And I understand that the rule had a lot of issues when introduced into recommended (unfortunately they weren't reported before that, but that is understandable as most users probably don't turn of rules outside of recommended).
As far at the open issues go - I believe that for all of them there is an open PR waiting for review or a response either asking for clarification or recommending the issue be closed because it was either already fixed or is invalid. However, getting the PRs merged has sometimes taken months because reviews take a long time (which is understandable since as far as I understand, all of us do this in our free time - but still I am not happy waiting for months for reviews on PRs fixing the rule and then getting it wholly rewritten because it has issues..)
Why I think this PR is taking the wrong approach: I don't think there is such a thing as proven wrong. When an app uses a helper, this rule pushes them towards making the helper correct (e.g. returning a resolved TS type).
What I'd suggest: Finish all open PRs, then review what the rule triggers on some chosen projects like immich to find out where to go next. I can imagine making the rule a little looser and adding a strict option, but I'd like to do it in a deliberate way.
The particular issue I noticed was about the newly checked places - When coming up with the rule, I thought about including <area>, SVG <a>, <form action>, formaction, preloadData(), preloadCode(). These are mostly FPs and mostly things like fixed absolute URLs, so adding them would be mostly false reports. But that's jsut from the PR body, I didn't read the code and have no intention to do so due to the size of the changeset and the above disagreement.
feat(no-navigation-without-resolve): rebuild the rule to report only proven problems
- ignore resolve()/page.url used inside a query or hash - new prefixBeforeBase and preloadCodeRouteId messages - cache evaluation results and cap array spreads (no more crash or exponential time) - treat changed variables, var redeclarations and declare as unknown - handle falsy literals and non-nullish values in || and ?? - keep escape hatches working without generated $app/types - import into the right script and keep CRLF in suggestions - skip elements with spread attributes in default mode - recognize paths.base from a namespace import - docs and changeset fixes
fix(no-navigation-without-resolve): address second review findings
- do not trust literal return types of function calls - treat new URL(path, unknownBase) as unknown - report the base path added before resolve() - do not crash on import x = require(...) / import x = NS.y - cache object lookups (no exponential time on spread chains)
fix(no-navigation-without-resolve): address third review findings
- guard object lookups against cycles (x = { ...x }) and cache by cut depth
- treat mutated URL objects as unknown (except query and hash changes)
- ignore tabs, newlines and trailing spaces in URLs
- do not report a path after asset() or an unknown prefix in default mode
- do not trust literal types of members of call results
- no resolve() suggestion when the URL has // or a (group) segmentfix(no-navigation-without-resolve): address fourth review findings
- find cycles through object members per variable (no factorial time on spread updates) - a cycle adds no value instead of an unknown one; stop after a step budget - do not trust literal types of awaited helper results - skip links whose rel may contain external (strict still checks them) - search/hash/searchParams are only exempt on URL objects - treat objects passed to functions, aliased or iterated as changed - skip the dead branch of a constant condition
fix(no-navigation-without-resolve): address fifth review findings
- an empty (cyclic) value no longer creates reports in new URL() and && - detect changes through aliases, callbacks, loops and function results - do not trust literal types of iteration items and callback parameters - results cut by the depth limit are reused only for the same URL - smaller step budget per URL
fix(no-navigation-without-resolve): address sixth review findings
- trust literal types only where the code declares them - treat spread copies, each-block items and special elements as possible changes - repeat self-dependent values until they stop growing (order-independent results)
fix(no-navigation-without-resolve): address seventh review findings
- trust literal types only when written out (annotation or literal value), also for imports and members - repeat self-dependent values even when an outer value is also cut - page.url.search / .hash and location.search are a query or a hash - suggestions keep the query and the hash outside resolve() - an object literal with __proto__ is not looked up
fix(no-navigation-without-resolve): address eighth review findings
- do not trust object literals passed to a function - check the property of obj[key], not the symbol of key - follow typeof and type aliases in annotations
fix(no-navigation-without-resolve): address ninth review findings
- object and array literals are written out only if every value inside is - check type annotations of parameters and variables (typeof of a function result) - satisfies keeps the inferred type
fix(no-navigation-without-resolve): address tenth review findings
- a member is trusted only if its object is declared too (generic helpers keep property symbols) - no Kit 3 suggestion for '/' followed by code
fix(no-navigation-without-resolve): address eleventh review findings
- ignore $app/types when ResolvedPathname is plain string (before svelte-kit sync) - accept ResolvedPathname props typed through the destructuring pattern
fix(no-navigation-without-resolve): address twelfth review findings
- use the declared SvelteKit range when the package is not in node_modules - document that JSDoc casts are not recognized
fix(no-navigation-without-resolve): address final review findings
- treat destructuring and for-of targets of a member as changes - comment, naming and docs/changeset cleanups
test(no-navigation-without-resolve): fix tests for ESLint 8 and Svelte 3/4
- use a flat config Linter in the standalone tests - run Svelte 5 only fixtures only on Svelte 5
fix(no-navigation-without-resolve): handle analysis edge cases
docs: align navigation rule release notes with final behavior
fix(no-navigation-without-resolve): report relative URLs only in strict mode
Relative URLs usually keep the base path, so they are not proven wrong. `allowRelativePaths` now defaults to `true`, or `false` with `strict`.
chore: merge no-navigation-without-resolve changesets into one
fix(no-navigation-without-resolve): allow a root-relative fallback after base
`base || '/'` uses the right side only when the base path is empty.
packages/eslint-plugin-svelte/src/rules/no-navigation-without-resolve.ts, it's likely too big! :(