Skip to content

Commit 3be0bbc

Browse files
chore: release eslint-plugin-svelte (#370)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent fcb5e31 commit 3be0bbc

6 files changed

+19
-15
lines changed

.changeset/strong-wombats-worry.md

-5
This file was deleted.

.changeset/tasty-houses-behave.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.18.0
4+
5+
### Minor Changes
6+
7+
- [#368](https://github.com/ota-meshi/eslint-plugin-svelte/pull/368) [`fcb5e31`](https://github.com/ota-meshi/eslint-plugin-svelte/commit/fcb5e319620b1cc71ffe579760033813bd719410) Thanks [@marekdedic](https://github.com/marekdedic)! - feat: added the `svelte/experimental-require-slot-types` rule
8+
9+
- [#365](https://github.com/ota-meshi/eslint-plugin-svelte/pull/365) [`e61bbc3`](https://github.com/ota-meshi/eslint-plugin-svelte/commit/e61bbc347f416f19e9e1e026c4d692e404776023) Thanks [@marekdedic](https://github.com/marekdedic)! - feat: added the `svelte/experimental-require-strict-events` rule
10+
311
## 2.17.0
412

513
### Minor Changes

docs/rules/experimental-require-slot-types.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ pageClass: "rule-details"
33
sidebarDepth: 0
44
title: "svelte/experimental-require-slot-types"
55
description: "require slot type declaration using the `$$Slots` interface"
6+
since: "v2.18.0"
67
---
78

89
# svelte/experimental-require-slot-types
910

1011
> require slot type declaration using the `$$Slots` interface
1112
12-
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> **_This rule has not been released yet._** </badge>
13-
1413
## :book: Rule Details
1514

1615
This rule enforces the presence of the `$$Slots` interface if any slots are present in the component. This interface declares all of the used slots and their props and enables typechecking both in the component itself as well as all components that include it.
@@ -107,6 +106,10 @@ The `$$Slots` interface is experimental and is documented in [svelte RFC #38](h
107106

108107
Nothing.
109108

109+
## :rocket: Version
110+
111+
This rule was introduced in eslint-plugin-svelte v2.18.0
112+
110113
## :mag: Implementation
111114

112115
- [Rule source](https://github.com/ota-meshi/eslint-plugin-svelte/blob/main/src/rules/experimental-require-slot-types.ts)

docs/rules/experimental-require-strict-events.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ pageClass: "rule-details"
33
sidebarDepth: 0
44
title: "svelte/experimental-require-strict-events"
55
description: "require the strictEvents attribute on `<script>` tags"
6+
since: "v2.18.0"
67
---
78

89
# svelte/experimental-require-strict-events
910

1011
> require the strictEvents attribute on `<script>` tags
1112
12-
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> **_This rule has not been released yet._** </badge>
13-
1413
## :book: Rule Details
1514

1615
This rule enforces the presence of the `strictEvents` attribute on the main `<script>` tag of all components. This attributes enforces typechecking of events dispatched by the component, e.g. making it a typescript error to listen to any non-existent events. Alternatively, the event types may be defined manually by declaring the `$$Events` interface. The `strictEvents` attribute and the `$$Events` interface are experimental and are documented in [svelte RFC #38](https://github.com/dummdidumm/rfcs/blob/ts-typedefs-within-svelte-components/text/ts-typing-props-slots-events.md#typing-events).
@@ -59,6 +58,10 @@ This rule enforces the presence of the `strictEvents` attribute on the main `<sc
5958

6059
Nothing.
6160

61+
## :rocket: Version
62+
63+
This rule was introduced in eslint-plugin-svelte v2.18.0
64+
6265
## :mag: Implementation
6366

6467
- [Rule source](https://github.com/ota-meshi/eslint-plugin-svelte/blob/main/src/rules/experimental-require-strict-events.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.17.0",
3+
"version": "2.18.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)