Skip to content

Commit

Permalink
chore: release eslint-plugin-svelte (next) (#981)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Dec 31, 2024
1 parent f4a0fa7 commit f02b292
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"green-squids-compete",
"hungry-grapes-shave",
"lazy-eyes-wait",
"loud-zoos-kiss",
"olive-melons-explain",
"olive-wolves-travel",
"quiet-toys-burn",
Expand Down
7 changes: 5 additions & 2 deletions docs/rules/no-useless-children-snippet.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ pageClass: 'rule-details'
sidebarDepth: 0
title: 'svelte/no-useless-children-snippet'
description: "disallow explicit children snippet where it's not needed"
since: 'v3.0.0-next.9'
---

# svelte/no-useless-children-snippet

> disallow explicit children snippet where it's not needed
- :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

Any content inside component tags that is not a snippet declaration implicitly becomes part of the children snippet. Thus, declaring the children snippet explicitly is only necessary when the snippet has parameters.
Expand Down Expand Up @@ -51,6 +50,10 @@ Any content inside component tags that is not a snippet declaration implicitly b

Nothing.

## :rocket: Version

This rule was introduced in eslint-plugin-svelte v3.0.0-next.9

## :mag: Implementation

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

## 3.0.0-next.9

### Minor Changes

- [#922](https://github.com/sveltejs/eslint-plugin-svelte/pull/922) [`f4a0fa7`](https://github.com/sveltejs/eslint-plugin-svelte/commit/f4a0fa78e06091348d985b5442a390eae47b0f4f) Thanks [@marekdedic](https://github.com/marekdedic)! - feat: added the no-useless-children-snippet rule

## 3.0.0-next.8

### Minor 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.0.0-next.8",
"version": "3.0.0-next.9",
"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';
export const version = '3.0.0-next.8';
export const version = '3.0.0-next.9';

0 comments on commit f02b292

Please sign in to comment.