diff --git a/.changeset/moody-seas-kick.md b/.changeset/moody-seas-kick.md deleted file mode 100644 index aebc93044..000000000 --- a/.changeset/moody-seas-kick.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"eslint-plugin-svelte": minor ---- - -feat: added the no-unused-class-name rule diff --git a/.changeset/tasty-beds-compare.md b/.changeset/tasty-beds-compare.md deleted file mode 100644 index 6d4d8c5b2..000000000 --- a/.changeset/tasty-beds-compare.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"eslint-plugin-svelte": minor ---- - -fix(deps): update dependency svelte-eslint-parser to ^0.31.0 diff --git a/.changeset/wise-flies-lay.md b/.changeset/wise-flies-lay.md deleted file mode 100644 index a5360b7b7..000000000 --- a/.changeset/wise-flies-lay.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"eslint-plugin-svelte": minor ---- - -feat: add `no-restricted-html-elements` rule diff --git a/CHANGELOG.md b/CHANGELOG.md index 53179650e..a709d33db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # eslint-plugin-svelte +## 2.31.0 + +### Minor Changes + +- [#489](https://github.com/sveltejs/eslint-plugin-svelte/pull/489) [`cc321f4`](https://github.com/sveltejs/eslint-plugin-svelte/commit/cc321f4182fe71b0b1f136d6ede37c509a402c25) Thanks [@marekdedic](https://github.com/marekdedic)! - feat: added the no-unused-class-name rule + +- [#504](https://github.com/sveltejs/eslint-plugin-svelte/pull/504) [`ab9e6e7`](https://github.com/sveltejs/eslint-plugin-svelte/commit/ab9e6e7f64537747a31826d9ff3758350f0b0f59) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency svelte-eslint-parser to ^0.31.0 + +- [#499](https://github.com/sveltejs/eslint-plugin-svelte/pull/499) [`16d6816`](https://github.com/sveltejs/eslint-plugin-svelte/commit/16d6816bbfec66ad89bbbe59429c74c6a21542df) Thanks [@baseballyama](https://github.com/baseballyama)! - feat: add `no-restricted-html-elements` rule + ## 2.30.0 ### Minor Changes diff --git a/docs/rules/no-restricted-html-elements.md b/docs/rules/no-restricted-html-elements.md index b7cac878b..7e0412baa 100644 --- a/docs/rules/no-restricted-html-elements.md +++ b/docs/rules/no-restricted-html-elements.md @@ -3,14 +3,13 @@ pageClass: "rule-details" sidebarDepth: 0 title: "svelte/no-restricted-html-elements" description: "disallow specific HTML elements" +since: "v2.31.0" --- # svelte/no-restricted-html-elements > disallow specific HTML elements -- :exclamation: **_This rule has not been released yet._** - ## :book: Rule Details This rule reports to usage of resticted HTML elements. @@ -101,6 +100,10 @@ Alternatively, the rule also accepts objects. } ``` +## :rocket: Version + +This rule was introduced in eslint-plugin-svelte v2.31.0 + ## :mag: Implementation - [Rule source](https://github.com/sveltejs/eslint-plugin-svelte/blob/main/src/rules/no-restricted-html-elements.ts) diff --git a/docs/rules/no-unused-class-name.md b/docs/rules/no-unused-class-name.md index 7e02863a2..657d744ff 100644 --- a/docs/rules/no-unused-class-name.md +++ b/docs/rules/no-unused-class-name.md @@ -3,14 +3,13 @@ pageClass: "rule-details" sidebarDepth: 0 title: "svelte/no-unused-class-name" description: "disallow the use of a class in the template without a corresponding style" +since: "v2.31.0" --- # svelte/no-unused-class-name > disallow the use of a class in the template without a corresponding style -- :exclamation: **_This rule has not been released yet._** - ## :book: Rule Details This rule is aimed at reducing unused classes in the HTML template. While `svelte-check` will produce the `css-unused-selector` if your `