Skip to content

chore: release eslint-plugin-svelte #238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/curly-tigers-destroy.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/curvy-ants-admire.md

This file was deleted.

8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: |

Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: |

Expand Down
9 changes: 4 additions & 5 deletions docs/rules/no-store-async.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
6 changes: 5 additions & 1 deletion docs/rules/no-trailing-spaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: <badge text="This rule has not been released yet." vertical="middle" type="error"> **_This rule has not been released yet._** </badge>
- :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
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down