From 3adb7bcb8d78323f6eadbb2f68b26b234ec0b8c5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 24 Aug 2022 18:01:43 +0900 Subject: [PATCH] chore: release eslint-plugin-svelte (#238) Co-authored-by: github-actions[bot] --- .changeset/curly-tigers-destroy.md | 5 ----- .changeset/curvy-ants-admire.md | 5 ----- CHANGELOG.md | 8 ++++++++ README.md | 3 ++- docs/rules.md | 2 +- docs/rules/no-store-async.md | 9 ++++----- docs/rules/no-trailing-spaces.md | 6 +++++- package.json | 2 +- 8 files changed, 21 insertions(+), 19 deletions(-) delete mode 100644 .changeset/curly-tigers-destroy.md delete mode 100644 .changeset/curvy-ants-admire.md diff --git a/.changeset/curly-tigers-destroy.md b/.changeset/curly-tigers-destroy.md deleted file mode 100644 index 90be91bae..000000000 --- a/.changeset/curly-tigers-destroy.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"eslint-plugin-svelte": minor ---- - -feat: add `svelte/no-trailing-spaces` rule diff --git a/.changeset/curvy-ants-admire.md b/.changeset/curvy-ants-admire.md deleted file mode 100644 index db5aec1ec..000000000 --- a/.changeset/curvy-ants-admire.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"eslint-plugin-svelte": minor ---- - -Add svelte/stores-no-async rule diff --git a/CHANGELOG.md b/CHANGELOG.md index 90934e919..4c0ced36c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # eslint-plugin-svelte +## 2.7.0 + +### Minor Changes + +- [#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 + +* [#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 + ## 2.6.0 ### Minor Changes diff --git a/README.md b/README.md index 71099619b..9f78407f7 100644 --- a/README.md +++ b/README.md @@ -269,7 +269,7 @@ These rules relate to possible syntax or logic errors in Svelte code: | [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: | | [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: | | [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: | -| [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: | +| [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 | | | [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: | | [svelte/valid-compile](https://ota-meshi.github.io/eslint-plugin-svelte/rules/valid-compile/) | disallow warnings when compiling. | :star: | @@ -326,6 +326,7 @@ These rules extend the rules provided by ESLint itself to work well in Svelte: | Rule ID | Description | | |:--------|:------------|:---| | [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: | +| [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: | ## System diff --git a/docs/rules.md b/docs/rules.md index 97379b6ed..1bf79427c 100644 --- a/docs/rules.md +++ b/docs/rules.md @@ -22,7 +22,7 @@ These rules relate to possible syntax or logic errors in Svelte code: | [svelte/no-not-function-handler](./rules/no-not-function-handler.md) | disallow use of not function in event handler | :star: | | [svelte/no-object-in-text-mustaches](./rules/no-object-in-text-mustaches.md) | disallow objects in text mustache interpolation | :star: | | [svelte/no-shorthand-style-property-overrides](./rules/no-shorthand-style-property-overrides.md) | disallow shorthand style properties that override related longhand properties | :star: | -| [svelte/no-store-async](./rules/no-store-async.md) | disallow using async/await inside svelte stores | :star: | +| [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 | | | [svelte/no-unknown-style-directive-property](./rules/no-unknown-style-directive-property.md) | disallow unknown `style:property` | :star: | | [svelte/valid-compile](./rules/valid-compile.md) | disallow warnings when compiling. | :star: | diff --git a/docs/rules/no-store-async.md b/docs/rules/no-store-async.md index 29dd29c64..ea8b2c37c 100644 --- a/docs/rules/no-store-async.md +++ b/docs/rules/no-store-async.md @@ -2,14 +2,13 @@ pageClass: "rule-details" sidebarDepth: 0 title: "svelte/no-store-async" -description: "disallow using async/await inside svelte stores" +description: "disallow using async/await inside svelte stores because it causes issues with the auto-unsubscribing features" +since: "v2.7.0" --- # svelte/no-store-async -> disallow using async/await inside svelte stores - -- :gear: This rule is included in `"plugin:svelte/recommended"`. +> disallow using async/await inside svelte stores because it causes issues with the auto-unsubscribing features ## :book: Rule Details @@ -48,7 +47,7 @@ Nothing. ## :rocket: Version -This rule was introduced in eslint-plugin-svelte v3.1.0 +This rule was introduced in eslint-plugin-svelte v2.7.0 ## :mag: Implementation diff --git a/docs/rules/no-trailing-spaces.md b/docs/rules/no-trailing-spaces.md index 7a5bc2502..0a5131dbc 100644 --- a/docs/rules/no-trailing-spaces.md +++ b/docs/rules/no-trailing-spaces.md @@ -3,13 +3,13 @@ pageClass: "rule-details" sidebarDepth: 0 title: "svelte/no-trailing-spaces" description: "disallow trailing whitespace at the end of lines" +since: "v2.7.0" --- # svelte/no-trailing-spaces > disallow trailing whitespace at the end of lines -- :exclamation: **_This rule has not been released yet._** - :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. ## :book: Rule Details @@ -75,6 +75,10 @@ Same as [no-trailing-spaces] rule option. See [here](https://eslint.org/docs/rul [no-trailing-spaces]: https://eslint.org/docs/rules/no-trailing-spaces +## :rocket: Version + +This rule was introduced in eslint-plugin-svelte v2.7.0 + ## :mag: Implementation - [Rule source](https://github.com/ota-meshi/eslint-plugin-svelte/blob/main/src/rules/no-trailing-spaces.ts) diff --git a/package.json b/package.json index 6f60f7db7..b97aafa0a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-svelte", - "version": "2.6.0", + "version": "2.7.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",