From 931c062f70dcb841f49703719334e6d23bb89fe3 Mon Sep 17 00:00:00 2001 From: yosuke ota Date: Fri, 12 Aug 2022 10:47:10 +0900 Subject: [PATCH] 2.5.0 --- README.md | 4 ++-- docs/rules.md | 4 ++-- docs/rules/html-self-closing.md | 6 +++++- docs/rules/no-reactive-functions.md | 10 +++++++--- docs/rules/no-reactive-literals.md | 4 ++-- docs/rules/require-stores-init.md | 7 +++++-- package.json | 2 +- 7 files changed, 24 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 2927f6793..9ce2a1594 100644 --- a/README.md +++ b/README.md @@ -282,8 +282,8 @@ These rules relate to better ways of doing things to help you avoid problems: |:--------|:------------|:---| | [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 | | | [svelte/no-at-debug-tags](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-at-debug-tags/) | disallow the use of `{@debug}` | :star: | -| [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: | -| [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: | +| [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: | +| [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: | | [svelte/no-unused-svelte-ignore](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-unused-svelte-ignore/) | disallow unused svelte-ignore comments | :star: | | [svelte/no-useless-mustaches](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-useless-mustaches/) | disallow unnecessary mustache interpolations | :wrench: | | [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 | | diff --git a/docs/rules.md b/docs/rules.md index 040d07895..223d78dca 100644 --- a/docs/rules.md +++ b/docs/rules.md @@ -42,8 +42,8 @@ These rules relate to better ways of doing things to help you avoid problems: |:--------|:------------|:---| | [svelte/button-has-type](./rules/button-has-type.md) | disallow usage of button without an explicit type attribute | | | [svelte/no-at-debug-tags](./rules/no-at-debug-tags.md) | disallow the use of `{@debug}` | :star: | -| [svelte/no-reactive-functions](./rules/no-reactive-functions.md) | It's not necessary to define functions in reactive statements | :bulb: | -| [svelte/no-reactive-literals](./rules/no-reactive-literals.md) | Don't assign literal values in reactive statements | :bulb: | +| [svelte/no-reactive-functions](./rules/no-reactive-functions.md) | it's not necessary to define functions in reactive statements | :bulb: | +| [svelte/no-reactive-literals](./rules/no-reactive-literals.md) | don't assign literal values in reactive statements | :bulb: | | [svelte/no-unused-svelte-ignore](./rules/no-unused-svelte-ignore.md) | disallow unused svelte-ignore comments | :star: | | [svelte/no-useless-mustaches](./rules/no-useless-mustaches.md) | disallow unnecessary mustache interpolations | :wrench: | | [svelte/require-optimized-style-attribute](./rules/require-optimized-style-attribute.md) | require style attributes that can be optimized | | diff --git a/docs/rules/html-self-closing.md b/docs/rules/html-self-closing.md index 45878662a..b60b8abae 100644 --- a/docs/rules/html-self-closing.md +++ b/docs/rules/html-self-closing.md @@ -3,13 +3,13 @@ pageClass: "rule-details" sidebarDepth: 0 title: "svelte/html-self-closing" description: "enforce self-closing style" +since: "v2.5.0" --- # svelte/html-self-closing > enforce self-closing style -- :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 @@ -74,6 +74,10 @@ Every option can be set to - "never" (`
`) - "ignore" (either `
` or `
`) +## :rocket: Version + +This rule was introduced in eslint-plugin-svelte v2.5.0 + ## :mag: Implementation - [Rule source](https://github.com/ota-meshi/eslint-plugin-svelte/blob/main/src/rules/html-self-closing.ts) diff --git a/docs/rules/no-reactive-functions.md b/docs/rules/no-reactive-functions.md index c25c758e0..8bd4f26b4 100644 --- a/docs/rules/no-reactive-functions.md +++ b/docs/rules/no-reactive-functions.md @@ -2,14 +2,14 @@ pageClass: "rule-details" sidebarDepth: 0 title: "svelte/no-reactive-functions" -description: "It's not necessary to define functions in reactive statements" +description: "it's not necessary to define functions in reactive statements" +since: "v2.5.0" --- # svelte/no-reactive-functions -> It's not necessary to define functions in reactive statements +> it's not necessary to define functions in reactive statements -- :exclamation: **_This rule has not been released yet._** - :bulb: Some problems reported by this rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions). ## :book: Rule Details @@ -46,6 +46,10 @@ This rule was taken from [@tivac/eslint-plugin-svelte]. This rule is compatible with `@tivac/svelte/reactive-functions` rule. [@tivac/eslint-plugin-svelte]: https://github.com/tivac/eslint-plugin-svelte/ +## :rocket: Version + +This rule was introduced in eslint-plugin-svelte v2.5.0 + ## :mag: Implementation - [Rule source](https://github.com/ota-meshi/eslint-plugin-svelte/blob/main/src/rules/no-reactive-functions.ts) diff --git a/docs/rules/no-reactive-literals.md b/docs/rules/no-reactive-literals.md index 2872047df..cf758982b 100644 --- a/docs/rules/no-reactive-literals.md +++ b/docs/rules/no-reactive-literals.md @@ -2,13 +2,13 @@ pageClass: "rule-details" sidebarDepth: 0 title: "svelte/no-reactive-literals" -description: "Don't assign literal values in reactive statements" +description: "don't assign literal values in reactive statements" since: "v2.4.0" --- # svelte/no-reactive-literals -> Don't assign literal values in reactive statements +> don't assign literal values in reactive statements - :bulb: Some problems reported by this rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions). diff --git a/docs/rules/require-stores-init.md b/docs/rules/require-stores-init.md index 074c79af5..e891cda7c 100644 --- a/docs/rules/require-stores-init.md +++ b/docs/rules/require-stores-init.md @@ -3,14 +3,13 @@ pageClass: "rule-details" sidebarDepth: 0 title: "svelte/require-stores-init" description: "require initial value in store" +since: "v2.5.0" --- # svelte/require-stores-init > require initial value in store -- :exclamation: **_This rule has not been released yet._** - ## :book: Rule Details 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. [@tivac/eslint-plugin-svelte]: https://github.com/tivac/eslint-plugin-svelte/ +## :rocket: Version + +This rule was introduced in eslint-plugin-svelte v2.5.0 + ## :mag: Implementation - [Rule source](https://github.com/ota-meshi/eslint-plugin-svelte/blob/main/src/rules/require-stores-init.ts) diff --git a/package.json b/package.json index 7a97ffaa7..3f1467cee 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-svelte", - "version": "2.4.1", + "version": "2.5.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",