Skip to content

Commit fd3e136

Browse files
chore: release eslint-plugin-svelte
1 parent e2e791f commit fd3e136

File tree

6 files changed

+15
-14
lines changed

6 files changed

+15
-14
lines changed

.changeset/huge-taxis-jog.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/loud-rockets-lay.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs/rules/no-navigation-without-resolve.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ pageClass: 'rule-details'
33
sidebarDepth: 0
44
title: 'svelte/no-navigation-without-resolve'
55
description: 'disallow using navigation (links, goto, pushState, replaceState) without a resolve()'
6+
since: 'v3.12.0'
67
---
78

89
# svelte/no-navigation-without-resolve
910

1011
> disallow using navigation (links, goto, pushState, replaceState) without a resolve()
1112
12-
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> **_This rule has not been released yet._** </badge>
13-
1413
## :book: Rule Details
1514

1615
This rule reports navigation using HTML `<a>` tags, SvelteKit's `goto()`, `pushState()` and `replaceState()` functions without resolving a relative URL. 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 URL must be resolved using SvelteKit's `resolve()`, otherwise the site may break. For programmatic navigation to external URLs, using `window.location` is advised.
@@ -82,6 +81,10 @@ This rule checks all 4 navigation options for the presence of the `resolve()` fu
8281
- [`pushState()` documentation](https://svelte.dev/docs/kit/$app-navigation#pushState)
8382
- [`replaceState()` documentation](https://svelte.dev/docs/kit/$app-navigation#replaceState)
8483

84+
## :rocket: Version
85+
86+
This rule was introduced in eslint-plugin-svelte v3.12.0
87+
8588
## :mag: Implementation
8689

8790
- [Rule source](https://github.com/sveltejs/eslint-plugin-svelte/blob/main/packages/eslint-plugin-svelte/src/rules/no-navigation-without-resolve.ts)

packages/eslint-plugin-svelte/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# eslint-plugin-svelte
22

3+
## 3.12.0
4+
5+
### Minor Changes
6+
7+
- [#1289](https://github.com/sveltejs/eslint-plugin-svelte/pull/1289) [`e2e791f`](https://github.com/sveltejs/eslint-plugin-svelte/commit/e2e791f8fb8268750a9190089c19b16a02843066) Thanks [@marekdedic](https://github.com/marekdedic)! - feat: added the no-navigation-without-resolve rule
8+
9+
- [#1289](https://github.com/sveltejs/eslint-plugin-svelte/pull/1289) [`e2e791f`](https://github.com/sveltejs/eslint-plugin-svelte/commit/e2e791f8fb8268750a9190089c19b16a02843066) Thanks [@marekdedic](https://github.com/marekdedic)! - chore: deprecated the no-navigation-without-base rule
10+
311
## 3.11.0
412

513
### Minor Changes

packages/eslint-plugin-svelte/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-svelte",
3-
"version": "3.11.0",
3+
"version": "3.12.0",
44
"description": "ESLint plugin for Svelte using AST",
55
"repository": "git+https://github.com/sveltejs/eslint-plugin-svelte.git",
66
"homepage": "https://sveltejs.github.io/eslint-plugin-svelte",

packages/eslint-plugin-svelte/src/meta.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
// This file has been automatically generated,
33
// in order to update its content execute "pnpm run update"
44
export const name = 'eslint-plugin-svelte' as const;
5-
export const version = '3.11.0' as const;
5+
export const version = '3.12.0' as const;

0 commit comments

Comments
 (0)