From db13a5f3581526968efb3b857ae7b54244d92b6b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 4 Mar 2024 09:51:36 +0900 Subject: [PATCH] chore: release eslint-plugin-svelte (next) (#697) Co-authored-by: github-actions[bot] --- .changeset/pre.json | 2 ++ CHANGELOG.md | 10 ++++++++++ docs/rules/no-goto-without-base.md | 7 +++++-- package.json | 2 +- src/meta.ts | 2 +- 5 files changed, 19 insertions(+), 4 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index aa7040ed1..5a5a02457 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -11,7 +11,9 @@ "cuddly-cats-beam", "fifty-deers-pretend", "hip-eels-unite", + "lovely-papayas-cough", "popular-hotels-invent", + "shaggy-dryers-smoke", "shaggy-mirrors-join", "shy-walls-laugh", "stale-crews-brush", diff --git a/CHANGELOG.md b/CHANGELOG.md index 72ac45136..27ee3522b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # eslint-plugin-svelte +## 2.36.0-next.9 + +### Minor Changes + +- [#679](https://github.com/sveltejs/eslint-plugin-svelte/pull/679) [`4e6c681`](https://github.com/sveltejs/eslint-plugin-svelte/commit/4e6c6817681b81bd546b032d7b1ff9a6a6e1935a) Thanks [@marekdedic](https://github.com/marekdedic)! - feat: added the no-goto-without-base rule + +### Patch Changes + +- [#696](https://github.com/sveltejs/eslint-plugin-svelte/pull/696) [`d4303f5`](https://github.com/sveltejs/eslint-plugin-svelte/commit/d4303f5347dae7828e08e699741a276ee35dbd43) Thanks [@ota-meshi](https://github.com/ota-meshi)! - fix: update svelte-eslint-parser + ## 2.36.0-next.8 ### Patch Changes diff --git a/docs/rules/no-goto-without-base.md b/docs/rules/no-goto-without-base.md index e1d0de774..a9ca2b4e8 100644 --- a/docs/rules/no-goto-without-base.md +++ b/docs/rules/no-goto-without-base.md @@ -3,14 +3,13 @@ pageClass: 'rule-details' sidebarDepth: 0 title: 'svelte/no-goto-without-base' description: 'disallow using goto() without the base path' +since: 'v2.36.0-next.9' --- # svelte/no-goto-without-base > disallow using goto() without the base path -- :exclamation: **_This rule has not been released yet._** - ## :book: Rule Details This rule reports navigation using SvelteKit's `goto()` function without prefixing a relative URL with the base path. If a non-prefixed relative URL is used for navigation, the `goto` function navigates away from the base path, which is usually not what you wanted to do (for external URLs, `window.location = url` should be used instead). @@ -55,6 +54,10 @@ Nothing. - [`goto()` documentation](https://kit.svelte.dev/docs/modules#$app-navigation-goto) - [`base` documentation](https://kit.svelte.dev/docs/modules#$app-paths-base) +## :rocket: Version + +This rule was introduced in eslint-plugin-svelte v2.36.0-next.9 + ## :mag: Implementation - [Rule source](https://github.com/sveltejs/eslint-plugin-svelte/blob/main/src/rules/no-goto-without-base.ts) diff --git a/package.json b/package.json index 6d855e4f1..14ad17fbc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-svelte", - "version": "2.36.0-next.8", + "version": "2.36.0-next.9", "description": "ESLint plugin for Svelte using AST", "repository": "git+https://github.com/sveltejs/eslint-plugin-svelte.git", "homepage": "https://sveltejs.github.io/eslint-plugin-svelte", diff --git a/src/meta.ts b/src/meta.ts index 3cd25af1f..abfdf57d8 100644 --- a/src/meta.ts +++ b/src/meta.ts @@ -2,4 +2,4 @@ // This file has been automatically generated, // in order to update its content execute "pnpm run update" export const name = 'eslint-plugin-svelte' as const; -export const version = '2.36.0-next.8' as const; +export const version = '2.36.0-next.9' as const;