You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1
Original file line number
Diff line number
Diff line change
@@ -425,6 +425,7 @@ These rules relate to better ways of doing things to help you avoid problems:
425
425
|[svelte/no-unused-class-name](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-unused-class-name/)| disallow the use of a class in the template without a corresponding style ||
|[svelte/prefer-const](https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-const/)| Require `const` declarations for variables that are never reassigned after declared |:wrench:|
428
429
|[svelte/prefer-destructured-store-props](https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-destructured-store-props/)| destructure values from object stores for better change tracking & fewer redraws |:bulb:|
|[svelte/require-event-dispatcher-types](https://sveltejs.github.io/eslint-plugin-svelte/rules/require-event-dispatcher-types/)| require type parameters for `createEventDispatcher`||
description: 'Require `const` declarations for variables that are never reassigned after declared'
6
+
---
7
+
8
+
# svelte/prefer-const
9
+
10
+
> Require `const` declarations for variables that are never reassigned after declared
11
+
12
+
-:exclamation: <badgetext="This rule has not been released yet."vertical="middle"type="error"> **_This rule has not been released yet._** </badge>
13
+
-: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.
14
+
15
+
## :book: Rule Details
16
+
17
+
Based on https://eslint.org/docs/latest/rules/prefer-const but skips reactive variables created by runes.
0 commit comments