Skip to content

Commit 35171a6

Browse files
chore: release eslint-plugin-svelte
1 parent b3ceb2b commit 35171a6

File tree

7 files changed

+14
-11
lines changed

7 files changed

+14
-11
lines changed

.changeset/curvy-ants-admire.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.7.0
4+
5+
### Minor Changes
6+
7+
- [#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
8+
39
## 2.6.0
410

511
### Minor Changes

README.md

+1-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 | :star: |
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

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 | :star: |
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-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +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+
> disallow using async/await inside svelte stores because it causes issues with the auto-unsubscribing features
1112
1213
- :gear: This rule is included in `"plugin:svelte/recommended"`.
1314

@@ -48,7 +49,7 @@ Nothing.
4849

4950
## :rocket: Version
5051

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

5354
## :mag: Implementation
5455

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",

src/configs/recommended.ts

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export = {
1616
"svelte/no-not-function-handler": "error",
1717
"svelte/no-object-in-text-mustaches": "error",
1818
"svelte/no-shorthand-style-property-overrides": "error",
19+
"svelte/no-store-async": "error",
1920
"svelte/no-unknown-style-directive-property": "error",
2021
"svelte/no-unused-svelte-ignore": "error",
2122
"svelte/system": "error",

0 commit comments

Comments
 (0)