You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -363,7 +363,6 @@ These rules relate to SvelteKit and its best Practices.
363
363
| Rule ID | Description ||
364
364
|:--------|:------------|:---|
365
365
|[svelte/no-export-load-in-svelte-module-in-kit-pages](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-export-load-in-svelte-module-in-kit-pages/)| disallow exporting load functions in `*.svelte` module in SvelteKit page components. |:star:|
366
-
|[svelte/no-navigation-without-base](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-navigation-without-base/)| disallow using navigation (links, goto, pushState, replaceState) without the base path ||
367
366
|[svelte/valid-prop-names-in-kit-pages](https://sveltejs.github.io/eslint-plugin-svelte/rules/valid-prop-names-in-kit-pages/)| disallow props other than data or errors in SvelteKit page components. |:star:|
368
367
369
368
## Experimental
@@ -393,7 +392,8 @@ These rules relate to this plugin works:
393
392
|:--------|:------------|
394
393
|[svelte/@typescript-eslint/no-unnecessary-condition](https://sveltejs.github.io/eslint-plugin-svelte/rules/@typescript-eslint/no-unnecessary-condition/)| This rule is no longer needed when using svelte-eslint-parser>=v0.19.0. |
395
394
|[svelte/no-dynamic-slot-name](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-dynamic-slot-name/)| Now Svelte compiler itself throws an compile error. |
|[svelte/no-export-load-in-svelte-module-in-kit-pages](./rules/no-export-load-in-svelte-module-in-kit-pages.md)| disallow exporting load functions in `*.svelte` module in SvelteKit page components. |:star:|
123
-
|[svelte/no-navigation-without-base](./rules/no-navigation-without-base.md)| disallow using navigation (links, goto, pushState, replaceState) without the base path ||
124
-
|[svelte/valid-prop-names-in-kit-pages](./rules/valid-prop-names-in-kit-pages.md)| disallow props other than data or errors in SvelteKit page components. |:star:|
|[svelte/no-export-load-in-svelte-module-in-kit-pages](./rules/no-export-load-in-svelte-module-in-kit-pages.md)| disallow exporting load functions in `*.svelte` module in SvelteKit page components. |:star:|
123
+
|[svelte/valid-prop-names-in-kit-pages](./rules/valid-prop-names-in-kit-pages.md)| disallow props other than data or errors in SvelteKit page components. |:star:|
125
124
126
125
## Experimental
127
126
@@ -146,8 +145,9 @@ These rules relate to this plugin works:
146
145
-:warning: We're going to remove deprecated rules in the next major release. Please migrate to successor/new rules.
147
146
-:innocent: We don't fix bugs which are in deprecated rules since we don't have enough resources.
|[svelte/@typescript-eslint/no-unnecessary-condition](./rules/@typescript-eslint/no-unnecessary-condition.md)| This rule is no longer needed when using svelte-eslint-parser>=v0.19.0. |
152
-
|[svelte/no-dynamic-slot-name](./rules/no-dynamic-slot-name.md)| Now Svelte compiler itself throws an compile error. |
|[svelte/@typescript-eslint/no-unnecessary-condition](./rules/@typescript-eslint/no-unnecessary-condition.md)| This rule is no longer needed when using svelte-eslint-parser>=v0.19.0. |
151
+
|[svelte/no-dynamic-slot-name](./rules/no-dynamic-slot-name.md)| Now Svelte compiler itself throws an compile error. |
Copy file name to clipboardExpand all lines: docs/rules/no-navigation-without-base.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,8 @@ since: 'v2.36.0-next.9'
10
10
11
11
> disallow using navigation (links, goto, pushState, replaceState) without the base path
12
12
13
+
-:warning: This rule was **deprecated** and replaced by [svelte/no-navigation-without-resolve](no-navigation-without-resolve.md) rule.
14
+
13
15
## :book: Rule Details
14
16
15
17
This rule reports navigation using HTML `<a>` tags, SvelteKit's `goto()`, `pushState()` and `replaceState()` functions without prefixing a relative URL with the base path. All four of these may be used for navigation, with `goto()`, `pushState()` and `replaceState()` being intended solely for iternal navigation (i.e. not leaving the site), while `<a>` tags may be used for both internal and external navigation. When using any way of internal navigation, the base path must be prepended, otherwise the site may break. For programmatic navigation to external URLs, using `window.location` is advised.
0 commit comments