From 17d5d5558dd069bf685c868e11271ac60830f260 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 5 Sep 2022 11:04:47 +0000 Subject: [PATCH] chore: release eslint-plugin-svelte --- .changeset/gentle-bugs-stare.md | 5 ----- CHANGELOG.md | 6 ++++++ README.md | 2 +- docs/rules.md | 2 +- docs/rules/derived-has-same-inputs-outputs.md | 10 +++++++++- package.json | 2 +- 6 files changed, 18 insertions(+), 9 deletions(-) delete mode 100644 .changeset/gentle-bugs-stare.md diff --git a/.changeset/gentle-bugs-stare.md b/.changeset/gentle-bugs-stare.md deleted file mode 100644 index e207c8196..000000000 --- a/.changeset/gentle-bugs-stare.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"eslint-plugin-svelte": minor ---- - -feat: add `svelte/derived-has-same-inputs-outputs` rule diff --git a/CHANGELOG.md b/CHANGELOG.md index 7687efea9..924a06b62 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # eslint-plugin-svelte +## 2.8.0 + +### Minor Changes + +- [#249](https://github.com/ota-meshi/eslint-plugin-svelte/pull/249) [`6d0b89f`](https://github.com/ota-meshi/eslint-plugin-svelte/commit/6d0b89f644b160b94293f4f0a63d5cef4bb032e4) Thanks [@baseballyama](https://github.com/baseballyama)! - feat: add `svelte/derived-has-same-inputs-outputs` rule + ## 2.7.0 ### Minor Changes diff --git a/README.md b/README.md index d14be6352..799c077b8 100644 --- a/README.md +++ b/README.md @@ -289,7 +289,6 @@ These rules relate to better ways of doing things to help you avoid problems: | Rule ID | Description | | |:--------|:------------|:---| | [svelte/button-has-type](https://ota-meshi.github.io/eslint-plugin-svelte/rules/button-has-type/) | disallow usage of button without an explicit type attribute | | -| [svelte/derived-has-same-inputs-outputs](https://ota-meshi.github.io/eslint-plugin-svelte/rules/derived-has-same-inputs-outputs/) | derived store should use same variable names between values and callback | | | [svelte/no-at-debug-tags](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-at-debug-tags/) | disallow the use of `{@debug}` | :star: | | [svelte/no-reactive-functions](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-reactive-functions/) | it's not necessary to define functions in reactive statements | :bulb: | | [svelte/no-reactive-literals](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-reactive-literals/) | don't assign literal values in reactive statements | :bulb: | @@ -304,6 +303,7 @@ These rules relate to style guidelines, and are therefore quite subjective: | Rule ID | Description | | |:--------|:------------|:---| +| [svelte/derived-has-same-inputs-outputs](https://ota-meshi.github.io/eslint-plugin-svelte/rules/derived-has-same-inputs-outputs/) | derived store should use same variable names between values and callback | | | [svelte/first-attribute-linebreak](https://ota-meshi.github.io/eslint-plugin-svelte/rules/first-attribute-linebreak/) | enforce the location of first attribute | :wrench: | | [svelte/html-closing-bracket-spacing](https://ota-meshi.github.io/eslint-plugin-svelte/rules/html-closing-bracket-spacing/) | require or disallow a space before tag's closing brackets | :wrench: | | [svelte/html-quotes](https://ota-meshi.github.io/eslint-plugin-svelte/rules/html-quotes/) | enforce quotes style of HTML attributes | :wrench: | diff --git a/docs/rules.md b/docs/rules.md index a335ce2b9..153cd880c 100644 --- a/docs/rules.md +++ b/docs/rules.md @@ -42,7 +42,6 @@ These rules relate to better ways of doing things to help you avoid problems: | Rule ID | Description | | |:--------|:------------|:---| | [svelte/button-has-type](./rules/button-has-type.md) | disallow usage of button without an explicit type attribute | | -| [svelte/derived-has-same-inputs-outputs](./rules/derived-has-same-inputs-outputs.md) | derived store should use same variable names between values and callback | | | [svelte/no-at-debug-tags](./rules/no-at-debug-tags.md) | disallow the use of `{@debug}` | :star: | | [svelte/no-reactive-functions](./rules/no-reactive-functions.md) | it's not necessary to define functions in reactive statements | :bulb: | | [svelte/no-reactive-literals](./rules/no-reactive-literals.md) | don't assign literal values in reactive statements | :bulb: | @@ -57,6 +56,7 @@ These rules relate to style guidelines, and are therefore quite subjective: | Rule ID | Description | | |:--------|:------------|:---| +| [svelte/derived-has-same-inputs-outputs](./rules/derived-has-same-inputs-outputs.md) | derived store should use same variable names between values and callback | | | [svelte/first-attribute-linebreak](./rules/first-attribute-linebreak.md) | enforce the location of first attribute | :wrench: | | [svelte/html-closing-bracket-spacing](./rules/html-closing-bracket-spacing.md) | require or disallow a space before tag's closing brackets | :wrench: | | [svelte/html-quotes](./rules/html-quotes.md) | enforce quotes style of HTML attributes | :wrench: | diff --git a/docs/rules/derived-has-same-inputs-outputs.md b/docs/rules/derived-has-same-inputs-outputs.md index e63e488c0..2c3d9d5c2 100644 --- a/docs/rules/derived-has-same-inputs-outputs.md +++ b/docs/rules/derived-has-same-inputs-outputs.md @@ -3,9 +3,10 @@ pageClass: "rule-details" sidebarDepth: 0 title: "svelte/derived-has-same-inputs-outputs" description: "derived store should use same variable names between values and callback" +since: "v2.8.0" --- -# svelte/derived-has-same-inputs-outputs +# svelte/derived-has-same-inputs-outputs > derived store should use same variable names between values and callback @@ -45,4 +46,11 @@ Nothing. - [Svelte - Docs > RUN TIME > svelte/store > derived](https://svelte.dev/docs#run-time-svelte-store-derived) +## :rocket: Version +This rule was introduced in eslint-plugin-svelte v2.8.0 + +## :mag: Implementation + +- [Rule source](https://github.com/ota-meshi/eslint-plugin-svelte/blob/main/src/rules/derived-has-same-inputs-outputs.ts) +- [Test source](https://github.com/ota-meshi/eslint-plugin-svelte/blob/main/tests/src/rules/derived-has-same-inputs-outputs.ts) diff --git a/package.json b/package.json index a7cbe1984..e174a5e27 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-svelte", - "version": "2.7.0", + "version": "2.8.0", "description": "ESLint plugin for Svelte using AST", "repository": "git+https://github.com/ota-meshi/eslint-plugin-svelte.git", "homepage": "https://ota-meshi.github.io/eslint-plugin-svelte",