Skip to content

Commit 2d53665

Browse files
chore: release eslint-plugin-svelte
1 parent e56fbdb commit 2d53665

8 files changed

+21
-19
lines changed

.changeset/curly-tigers-destroy.md

-5
This file was deleted.

.changeset/curvy-ants-admire.md

-5
This file was deleted.

CHANGELOG.md

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

3+
## 2.7.0
4+
5+
### Minor Changes
6+
7+
- [#240](https://github.com/ota-meshi/eslint-plugin-svelte/pull/240) [`e56fbdb`](https://github.com/ota-meshi/eslint-plugin-svelte/commit/e56fbdb34079567a6c1061909fa7d54cfc91727d) Thanks [@ota-meshi](https://github.com/ota-meshi)! - feat: add `svelte/no-trailing-spaces` rule
8+
9+
* [#225](https://github.com/ota-meshi/eslint-plugin-svelte/pull/225) [`a3888b3`](https://github.com/ota-meshi/eslint-plugin-svelte/commit/a3888b3cf358ceaa4ddaf22af19f8124d0ff53e4) Thanks [@baseballyama](https://github.com/baseballyama)! - Add svelte/stores-no-async rule
10+
311
## 2.6.0
412

513
### Minor Changes

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ These rules relate to possible syntax or logic errors in Svelte code:
269269
| [svelte/no-not-function-handler](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-not-function-handler/) | disallow use of not function in event handler | :star: |
270270
| [svelte/no-object-in-text-mustaches](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-object-in-text-mustaches/) | disallow objects in text mustache interpolation | :star: |
271271
| [svelte/no-shorthand-style-property-overrides](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-shorthand-style-property-overrides/) | disallow shorthand style properties that override related longhand properties | :star: |
272-
| [svelte/no-store-async](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-store-async.md) | disallow using async/await inside svelte stores | :star: |
272+
| [svelte/no-store-async](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-store-async/) | disallow using async/await inside svelte stores because it causes issues with the auto-unsubscribing features | |
273273
| [svelte/no-unknown-style-directive-property](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-unknown-style-directive-property/) | disallow unknown `style:property` | :star: |
274274
| [svelte/valid-compile](https://ota-meshi.github.io/eslint-plugin-svelte/rules/valid-compile/) | disallow warnings when compiling. | :star: |
275275

@@ -326,6 +326,7 @@ These rules extend the rules provided by ESLint itself to work well in Svelte:
326326
| Rule ID | Description | |
327327
|:--------|:------------|:---|
328328
| [svelte/no-inner-declarations](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-inner-declarations/) | disallow variable or `function` declarations in nested blocks | :star: |
329+
| [svelte/no-trailing-spaces](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-trailing-spaces/) | disallow trailing whitespace at the end of lines | :wrench: |
329330

330331
## System
331332

docs/rules.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ These rules relate to possible syntax or logic errors in Svelte code:
2222
| [svelte/no-not-function-handler](./rules/no-not-function-handler.md) | disallow use of not function in event handler | :star: |
2323
| [svelte/no-object-in-text-mustaches](./rules/no-object-in-text-mustaches.md) | disallow objects in text mustache interpolation | :star: |
2424
| [svelte/no-shorthand-style-property-overrides](./rules/no-shorthand-style-property-overrides.md) | disallow shorthand style properties that override related longhand properties | :star: |
25-
| [svelte/no-store-async](./rules/no-store-async.md) | disallow using async/await inside svelte stores | :star: |
25+
| [svelte/no-store-async](./rules/no-store-async.md) | disallow using async/await inside svelte stores because it causes issues with the auto-unsubscribing features | |
2626
| [svelte/no-unknown-style-directive-property](./rules/no-unknown-style-directive-property.md) | disallow unknown `style:property` | :star: |
2727
| [svelte/valid-compile](./rules/valid-compile.md) | disallow warnings when compiling. | :star: |
2828

docs/rules/no-store-async.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22
pageClass: "rule-details"
33
sidebarDepth: 0
44
title: "svelte/no-store-async"
5-
description: "disallow using async/await inside svelte stores"
5+
description: "disallow using async/await inside svelte stores because it causes issues with the auto-unsubscribing features"
6+
since: "v2.7.0"
67
---
78

89
# svelte/no-store-async
910

10-
> disallow using async/await inside svelte stores
11-
12-
- :gear: This rule is included in `"plugin:svelte/recommended"`.
11+
> disallow using async/await inside svelte stores because it causes issues with the auto-unsubscribing features
1312
1413
## :book: Rule Details
1514

@@ -48,7 +47,7 @@ Nothing.
4847

4948
## :rocket: Version
5049

51-
This rule was introduced in eslint-plugin-svelte v3.1.0
50+
This rule was introduced in eslint-plugin-svelte v2.7.0
5251

5352
## :mag: Implementation
5453

docs/rules/no-trailing-spaces.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ pageClass: "rule-details"
33
sidebarDepth: 0
44
title: "svelte/no-trailing-spaces"
55
description: "disallow trailing whitespace at the end of lines"
6+
since: "v2.7.0"
67
---
78

89
# svelte/no-trailing-spaces
910

1011
> disallow trailing whitespace at the end of lines
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
@@ -75,6 +75,10 @@ Same as [no-trailing-spaces] rule option. See [here](https://eslint.org/docs/rul
7575

7676
[no-trailing-spaces]: https://eslint.org/docs/rules/no-trailing-spaces
7777

78+
## :rocket: Version
79+
80+
This rule was introduced in eslint-plugin-svelte v2.7.0
81+
7882
## :mag: Implementation
7983

8084
- [Rule source](https://github.com/ota-meshi/eslint-plugin-svelte/blob/main/src/rules/no-trailing-spaces.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.6.0",
3+
"version": "2.7.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)