From 074531fd6ea209b7ba19e324fae44e78537af10f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 4 Oct 2023 18:00:20 +0900 Subject: [PATCH] chore: release eslint-plugin-svelte (#593) Co-authored-by: github-actions[bot] --- .changeset/hip-tips-smell.md | 5 ----- CHANGELOG.md | 6 ++++++ docs/rules/no-ignored-unsubscribe.md | 7 +++++-- package.json | 2 +- src/meta.ts | 2 +- 5 files changed, 13 insertions(+), 9 deletions(-) delete mode 100644 .changeset/hip-tips-smell.md diff --git a/.changeset/hip-tips-smell.md b/.changeset/hip-tips-smell.md deleted file mode 100644 index 60dd0cd3b..000000000 --- a/.changeset/hip-tips-smell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"eslint-plugin-svelte": minor ---- - -feat: add new `svelte/no-ignored-unsubscribe` rule. diff --git a/CHANGELOG.md b/CHANGELOG.md index b25bca8eb..65c92d43d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # eslint-plugin-svelte +## 2.34.0 + +### Minor Changes + +- [#592](https://github.com/sveltejs/eslint-plugin-svelte/pull/592) [`1fe38d7`](https://github.com/sveltejs/eslint-plugin-svelte/commit/1fe38d770928bb890d4292e6a10028b93d9ba843) Thanks [@moufmouf](https://github.com/moufmouf)! - feat: add new `svelte/no-ignored-unsubscribe` rule. + ## 2.33.2 ### Patch Changes diff --git a/docs/rules/no-ignored-unsubscribe.md b/docs/rules/no-ignored-unsubscribe.md index caabed8c2..d780be992 100644 --- a/docs/rules/no-ignored-unsubscribe.md +++ b/docs/rules/no-ignored-unsubscribe.md @@ -3,14 +3,13 @@ pageClass: 'rule-details' sidebarDepth: 0 title: 'svelte/no-ignored-unsubscribe' description: 'disallow ignoring the unsubscribe method returned by the `subscribe()` on Svelte stores.' +since: 'v2.34.0' --- # svelte/no-ignored-unsubscribe > disallow ignoring the unsubscribe method returned by the `subscribe()` on Svelte stores. -- :exclamation: **_This rule has not been released yet._** - ## :book: Rule Details This rule fails if an "unsubscriber" returned by call to `subscribe()` is neither assigned to a variable or property or passed to a function. @@ -42,6 +41,10 @@ This rule helps to find such cases by ensuring that the unsubscriber (the return Nothing. +## :rocket: Version + +This rule was introduced in eslint-plugin-svelte v2.34.0 + ## :mag: Implementation - [Rule source](https://github.com/sveltejs/eslint-plugin-svelte/blob/main/src/rules/no-ignored-unsubscribe.ts) diff --git a/package.json b/package.json index bc629bde3..48bc5c5ae 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-svelte", - "version": "2.33.2", + "version": "2.34.0", "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 7ac57b512..5acbe94f2 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.33.2' as const; +export const version = '2.34.0' as const;