Skip to content

Commit d9c29bd

Browse files
chore: release eslint-plugin-svelte (#250)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 6d0b89f commit d9c29bd

File tree

6 files changed

+18
-9
lines changed

6 files changed

+18
-9
lines changed

.changeset/gentle-bugs-stare.md

-5
This file was deleted.

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# eslint-plugin-svelte
22

3+
## 2.8.0
4+
5+
### Minor Changes
6+
7+
- [#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
8+
39
## 2.7.0
410

511
### Minor Changes

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,6 @@ These rules relate to better ways of doing things to help you avoid problems:
289289
| Rule ID | Description | |
290290
|:--------|:------------|:---|
291291
| [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 | |
292-
| [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 | |
293292
| [svelte/no-at-debug-tags](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-at-debug-tags/) | disallow the use of `{@debug}` | :star: |
294293
| [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: |
295294
| [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:
304303

305304
| Rule ID | Description | |
306305
|:--------|:------------|:---|
306+
| [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 | |
307307
| [svelte/first-attribute-linebreak](https://ota-meshi.github.io/eslint-plugin-svelte/rules/first-attribute-linebreak/) | enforce the location of first attribute | :wrench: |
308308
| [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: |
309309
| [svelte/html-quotes](https://ota-meshi.github.io/eslint-plugin-svelte/rules/html-quotes/) | enforce quotes style of HTML attributes | :wrench: |

docs/rules.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ These rules relate to better ways of doing things to help you avoid problems:
4242
| Rule ID | Description | |
4343
|:--------|:------------|:---|
4444
| [svelte/button-has-type](./rules/button-has-type.md) | disallow usage of button without an explicit type attribute | |
45-
| [svelte/derived-has-same-inputs-outputs](./rules/derived-has-same-inputs-outputs.md) | derived store should use same variable names between values and callback | |
4645
| [svelte/no-at-debug-tags](./rules/no-at-debug-tags.md) | disallow the use of `{@debug}` | :star: |
4746
| [svelte/no-reactive-functions](./rules/no-reactive-functions.md) | it's not necessary to define functions in reactive statements | :bulb: |
4847
| [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:
5756

5857
| Rule ID | Description | |
5958
|:--------|:------------|:---|
59+
| [svelte/derived-has-same-inputs-outputs](./rules/derived-has-same-inputs-outputs.md) | derived store should use same variable names between values and callback | |
6060
| [svelte/first-attribute-linebreak](./rules/first-attribute-linebreak.md) | enforce the location of first attribute | :wrench: |
6161
| [svelte/html-closing-bracket-spacing](./rules/html-closing-bracket-spacing.md) | require or disallow a space before tag's closing brackets | :wrench: |
6262
| [svelte/html-quotes](./rules/html-quotes.md) | enforce quotes style of HTML attributes | :wrench: |

docs/rules/derived-has-same-inputs-outputs.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ pageClass: "rule-details"
33
sidebarDepth: 0
44
title: "svelte/derived-has-same-inputs-outputs"
55
description: "derived store should use same variable names between values and callback"
6+
since: "v2.8.0"
67
---
78

8-
# svelte/derived-has-same-inputs-outputs
9+
# svelte/derived-has-same-inputs-outputs
910

1011
> derived store should use same variable names between values and callback
1112
@@ -45,4 +46,11 @@ Nothing.
4546

4647
- [Svelte - Docs > RUN TIME > svelte/store > derived](https://svelte.dev/docs#run-time-svelte-store-derived)
4748

49+
## :rocket: Version
4850

51+
This rule was introduced in eslint-plugin-svelte v2.8.0
52+
53+
## :mag: Implementation
54+
55+
- [Rule source](https://github.com/ota-meshi/eslint-plugin-svelte/blob/main/src/rules/derived-has-same-inputs-outputs.ts)
56+
- [Test source](https://github.com/ota-meshi/eslint-plugin-svelte/blob/main/tests/src/rules/derived-has-same-inputs-outputs.ts)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-svelte",
3-
"version": "2.7.0",
3+
"version": "2.8.0",
44
"description": "ESLint plugin for Svelte using AST",
55
"repository": "git+https://github.com/ota-meshi/eslint-plugin-svelte.git",
66
"homepage": "https://ota-meshi.github.io/eslint-plugin-svelte",

0 commit comments

Comments
 (0)