Skip to content

Commit a02dee7

Browse files
chore: release eslint-plugin-svelte
1 parent bbdf0bb commit a02dee7

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

.changeset/tasty-houses-behave.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.18.0
4+
5+
### Minor Changes
6+
7+
- [#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
8+
39
## 2.17.0
410

511
### Minor Changes

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).
@@ -41,6 +40,10 @@ This rule enforces the presence of the `strictEvents` attribute on the main `<sc
4140

4241
Nothing.
4342

43+
## :rocket: Version
44+
45+
This rule was introduced in eslint-plugin-svelte v2.18.0
46+
4447
## :mag: Implementation
4548

4649
- [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)