Skip to content

chore: release eslint-plugin-svelte #1207

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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/ready-views-burn.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/rich-dogs-design.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/two-hats-ask.md

This file was deleted.

6 changes: 5 additions & 1 deletion docs/rules/prefer-writable-derived.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ pageClass: 'rule-details'
sidebarDepth: 0
title: 'svelte/prefer-writable-derived'
description: 'Prefer using writable $derived instead of $state and $effect'
since: 'v3.6.0'
---

# svelte/prefer-writable-derived

> Prefer using writable $derived instead of $state and $effect

- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> **_This rule has not been released yet._** </badge>
- :gear: This rule is included in `"plugin:svelte/recommended"`.
- :bulb: Some problems reported by this rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).

Expand Down Expand Up @@ -54,6 +54,10 @@ Nothing.
- [Svelte Documentation on Reactivity Primitives](https://svelte.dev/docs/svelte-components#script-2-assignments-are-reactive)
- [Svelte RFC for Reactivity Primitives](https://github.com/sveltejs/rfcs/blob/rfc-better-primitives/text/0000-better-primitives.md)

## :rocket: Version

This rule was introduced in eslint-plugin-svelte v3.6.0

## :mag: Implementation

- [Rule source](https://github.com/sveltejs/eslint-plugin-svelte/blob/main/packages/eslint-plugin-svelte/src/rules/prefer-writable-derived.ts)
Expand Down
7 changes: 5 additions & 2 deletions docs/rules/require-event-prefix.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ pageClass: 'rule-details'
sidebarDepth: 0
title: 'svelte/require-event-prefix'
description: 'require component event names to start with "on"'
since: 'v3.6.0'
---

# svelte/require-event-prefix

> require component event names to start with "on"

- :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

Starting with Svelte 5, component events are just component props that are functions and so can be called like any function. Events for HTML elements all have their name begin with "on" (e.g. `onclick`). This rule enforces that all component events (i.e. function props) also begin with "on".
Expand Down Expand Up @@ -65,6 +64,10 @@ Starting with Svelte 5, component events are just component props that are funct

- [Svelte docs on events in version 5](https://svelte.dev/docs/svelte/v5-migration-guide#Event-changes)

## :rocket: Version

This rule was introduced in eslint-plugin-svelte v3.6.0

## :mag: Implementation

- [Rule source](https://github.com/sveltejs/eslint-plugin-svelte/blob/main/packages/eslint-plugin-svelte/src/rules/require-event-prefix.ts)
Expand Down
10 changes: 10 additions & 0 deletions packages/eslint-plugin-svelte/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# eslint-plugin-svelte

## 3.6.0

### Minor Changes

- [#1170](https://github.com/sveltejs/eslint-plugin-svelte/pull/1170) [`3ddbd83`](https://github.com/sveltejs/eslint-plugin-svelte/commit/3ddbd83068a8a82ed5bfe638483c7dd7839e681a) Thanks [@baseballyama](https://github.com/baseballyama)! - feat: add `prefer-writable-derived` rule

- [#1069](https://github.com/sveltejs/eslint-plugin-svelte/pull/1069) [`73f23ae`](https://github.com/sveltejs/eslint-plugin-svelte/commit/73f23ae0321aa4cb87e700f8478b140059e18c64) Thanks [@marekdedic](https://github.com/marekdedic)! - feat: added the `require-event-prefix` rule

- [#1148](https://github.com/sveltejs/eslint-plugin-svelte/pull/1148) [`87c74fe`](https://github.com/sveltejs/eslint-plugin-svelte/commit/87c74feef892cb7e04e5709e66dfeda4e27ec820) Thanks [@marekdedic](https://github.com/marekdedic)! - feat(consistent-selector-style): added support for dynamic classes and IDs

## 3.5.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-svelte/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-svelte",
"version": "3.5.1",
"version": "3.6.0",
"description": "ESLint plugin for Svelte using AST",
"repository": "git+https://github.com/sveltejs/eslint-plugin-svelte.git",
"homepage": "https://sveltejs.github.io/eslint-plugin-svelte",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-svelte/src/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
// This file has been automatically generated,
// in order to update its content execute "pnpm run update"
export const name = 'eslint-plugin-svelte' as const;
export const version = '3.5.1' as const;
export const version = '3.6.0' as const;