Skip to content

Commit 931c062

Browse files
committed
2.5.0
1 parent ae05428 commit 931c062

7 files changed

+24
-13
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,8 @@ These rules relate to better ways of doing things to help you avoid problems:
282282
|:--------|:------------|:---|
283283
| [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 | |
284284
| [svelte/no-at-debug-tags](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-at-debug-tags/) | disallow the use of `{@debug}` | :star: |
285-
| [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: |
286-
| [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: |
285+
| [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: |
286+
| [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: |
287287
| [svelte/no-unused-svelte-ignore](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-unused-svelte-ignore/) | disallow unused svelte-ignore comments | :star: |
288288
| [svelte/no-useless-mustaches](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-useless-mustaches/) | disallow unnecessary mustache interpolations | :wrench: |
289289
| [svelte/require-optimized-style-attribute](https://ota-meshi.github.io/eslint-plugin-svelte/rules/require-optimized-style-attribute/) | require style attributes that can be optimized | |

docs/rules.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ These rules relate to better ways of doing things to help you avoid problems:
4242
|:--------|:------------|:---|
4343
| [svelte/button-has-type](./rules/button-has-type.md) | disallow usage of button without an explicit type attribute | |
4444
| [svelte/no-at-debug-tags](./rules/no-at-debug-tags.md) | disallow the use of `{@debug}` | :star: |
45-
| [svelte/no-reactive-functions](./rules/no-reactive-functions.md) | It's not necessary to define functions in reactive statements | :bulb: |
46-
| [svelte/no-reactive-literals](./rules/no-reactive-literals.md) | Don't assign literal values in reactive statements | :bulb: |
45+
| [svelte/no-reactive-functions](./rules/no-reactive-functions.md) | it's not necessary to define functions in reactive statements | :bulb: |
46+
| [svelte/no-reactive-literals](./rules/no-reactive-literals.md) | don't assign literal values in reactive statements | :bulb: |
4747
| [svelte/no-unused-svelte-ignore](./rules/no-unused-svelte-ignore.md) | disallow unused svelte-ignore comments | :star: |
4848
| [svelte/no-useless-mustaches](./rules/no-useless-mustaches.md) | disallow unnecessary mustache interpolations | :wrench: |
4949
| [svelte/require-optimized-style-attribute](./rules/require-optimized-style-attribute.md) | require style attributes that can be optimized | |

docs/rules/html-self-closing.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ pageClass: "rule-details"
33
sidebarDepth: 0
44
title: "svelte/html-self-closing"
55
description: "enforce self-closing style"
6+
since: "v2.5.0"
67
---
78

89
# svelte/html-self-closing
910

1011
> enforce self-closing style
1112
12-
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> **_This rule has not been released yet._** </badge>
1313
- :wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the problems reported by this rule.
1414

1515
## :book: Rule Details
@@ -74,6 +74,10 @@ Every option can be set to
7474
- "never" (`<div></div>`)
7575
- "ignore" (either `<div />` or `<div></div>`)
7676

77+
## :rocket: Version
78+
79+
This rule was introduced in eslint-plugin-svelte v2.5.0
80+
7781
## :mag: Implementation
7882

7983
- [Rule source](https://github.com/ota-meshi/eslint-plugin-svelte/blob/main/src/rules/html-self-closing.ts)

docs/rules/no-reactive-functions.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
pageClass: "rule-details"
33
sidebarDepth: 0
44
title: "svelte/no-reactive-functions"
5-
description: "It's not necessary to define functions in reactive statements"
5+
description: "it's not necessary to define functions in reactive statements"
6+
since: "v2.5.0"
67
---
78

89
# svelte/no-reactive-functions
910

10-
> It's not necessary to define functions in reactive statements
11+
> it's not necessary to define functions in reactive statements
1112
12-
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> **_This rule has not been released yet._** </badge>
1313
- :bulb: Some problems reported by this rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
1414

1515
## :book: Rule Details
@@ -46,6 +46,10 @@ This rule was taken from [@tivac/eslint-plugin-svelte].
4646
This rule is compatible with `@tivac/svelte/reactive-functions` rule.
4747

4848
[@tivac/eslint-plugin-svelte]: https://github.com/tivac/eslint-plugin-svelte/
49+
## :rocket: Version
50+
51+
This rule was introduced in eslint-plugin-svelte v2.5.0
52+
4953
## :mag: Implementation
5054

5155
- [Rule source](https://github.com/ota-meshi/eslint-plugin-svelte/blob/main/src/rules/no-reactive-functions.ts)

docs/rules/no-reactive-literals.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
pageClass: "rule-details"
33
sidebarDepth: 0
44
title: "svelte/no-reactive-literals"
5-
description: "Don't assign literal values in reactive statements"
5+
description: "don't assign literal values in reactive statements"
66
since: "v2.4.0"
77
---
88

99
# svelte/no-reactive-literals
1010

11-
> Don't assign literal values in reactive statements
11+
> don't assign literal values in reactive statements
1212
1313
- :bulb: Some problems reported by this rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
1414

docs/rules/require-stores-init.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ pageClass: "rule-details"
33
sidebarDepth: 0
44
title: "svelte/require-stores-init"
55
description: "require initial value in store"
6+
since: "v2.5.0"
67
---
78

89
# svelte/require-stores-init
910

1011
> require initial value in store
1112
12-
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> **_This rule has not been released yet._** </badge>
13-
1413
## :book: Rule Details
1514

1615
This rule is aimed to enforce initial values when initializing the Svelte stores.
@@ -48,6 +47,10 @@ This rule is compatible with `@tivac/svelte/stores-initial-value` rule.
4847

4948
[@tivac/eslint-plugin-svelte]: https://github.com/tivac/eslint-plugin-svelte/
5049

50+
## :rocket: Version
51+
52+
This rule was introduced in eslint-plugin-svelte v2.5.0
53+
5154
## :mag: Implementation
5255

5356
- [Rule source](https://github.com/ota-meshi/eslint-plugin-svelte/blob/main/src/rules/require-stores-init.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.4.1",
3+
"version": "2.5.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)