Skip to content
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

chore: release eslint-plugin-svelte (next) #973

Merged
merged 1 commit into from
Dec 30, 2024
Merged
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
3 changes: 3 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@
"docs": "0.0.0"
},
"changesets": [
"blue-panthers-run",
"cool-rockets-allow",
"fast-coins-fly",
"green-squids-compete",
"hungry-grapes-shave",
"lazy-eyes-wait",
"olive-wolves-travel",
"quiet-toys-burn",
"sixty-news-look",
"small-days-agree",
"small-donuts-end",
"thick-items-retire",
Expand Down
6 changes: 5 additions & 1 deletion docs/rules/prefer-const.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-const'
description: 'Require `const` declarations for variables that are never reassigned after declared'
since: 'v3.0.0-next.6'
---

# svelte/prefer-const

> Require `const` declarations for variables that are never reassigned after declared

- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> **_This rule has not been released yet._** </badge>
- :wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the problems reported by this rule.

## :book: Rule Details
Expand Down Expand Up @@ -61,6 +61,10 @@ This rule reports the same as the base ESLint `prefer-const` rule, except that i

- See [ESLint `prefer-const` rule](https://eslint.org/docs/latest/rules/prefer-const) for more information about the base rule.

## :rocket: Version

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

## :mag: Implementation

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

## 3.0.0-next.6

### Minor Changes

- [#933](https://github.com/sveltejs/eslint-plugin-svelte/pull/933) [`71eca84`](https://github.com/sveltejs/eslint-plugin-svelte/commit/71eca843c43250591ec6fa2dd1dc547b1074d6ad) Thanks [@mikededo](https://github.com/mikededo)! - Add `prefer-const` rule

- [#963](https://github.com/sveltejs/eslint-plugin-svelte/pull/963) [`2c551b2`](https://github.com/sveltejs/eslint-plugin-svelte/commit/2c551b20557bcd53e35479336bf0c25e88a7643b) Thanks [@baseballyama](https://github.com/baseballyama)! - feat: support Svelte5 of `valid-prop-names-in-kit-pages` rule

### Patch Changes

- [#961](https://github.com/sveltejs/eslint-plugin-svelte/pull/961) [`117e60d`](https://github.com/sveltejs/eslint-plugin-svelte/commit/117e60d4290966911450c7e0db8566279e4511bb) Thanks [@baseballyama](https://github.com/baseballyama)! - fix: support each blocks without an item

## 3.0.0-next.5

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