Skip to content

Commit

Permalink
chore: release eslint-plugin-svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 9, 2023
1 parent bbdf0bb commit a02dee7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
5 changes: 0 additions & 5 deletions .changeset/tasty-houses-behave.md

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# eslint-plugin-svelte

## 2.18.0

### Minor Changes

- [#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

## 2.17.0

### Minor Changes
Expand Down
7 changes: 5 additions & 2 deletions docs/rules/experimental-require-strict-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ pageClass: "rule-details"
sidebarDepth: 0
title: "svelte/experimental-require-strict-events"
description: "require the strictEvents attribute on `<script>` tags"
since: "v2.18.0"
---

# svelte/experimental-require-strict-events

> require the strictEvents attribute on `<script>` tags
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> **_This rule has not been released yet._** </badge>

## :book: Rule Details

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

Nothing.

## :rocket: Version

This rule was introduced in eslint-plugin-svelte v2.18.0

## :mag: Implementation

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

0 comments on commit a02dee7

Please sign in to comment.