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: docs/migration.md
+96
Original file line number
Diff line number
Diff line change
@@ -62,3 +62,99 @@ Therefore, you need to replace the package name, and the presets, rules, and set
62
62
+ "svelte": { ... }
63
63
},
64
64
```
65
+
66
+
## From `eslint-plugin-svelte` v2 To v3
67
+
68
+
This section explains the necessary changes when upgrading from `eslint-plugin-svelte` v2 to v3.
69
+
v3 includes **support for ESLint Flat Config only**, **changes to the recommended rule set**, and other breaking changes.
70
+
71
+
---
72
+
73
+
## Breaking Changes
74
+
75
+
### 1. **Minimum Node.js Version Requirement**
76
+
77
+
v3 requires **one of the following Node.js versions**:
78
+
79
+
- `^18.20.4`
80
+
- `^20.18.0`
81
+
- `>=22.10.0`
82
+
83
+
### 2. **ESLint Flat Config Only**
84
+
85
+
- `.eslintrc.js` and `.eslintrc.json` are **no longer supported**.
86
+
- You must use **Flat Config (`eslint.config.js`)**.
87
+
- See [README](README.md) for more details.
88
+
89
+
### 3. **ESLint Version Requirement**
90
+
91
+
- v3 requires **ESLint 8.57.1 or later** (including v9.x).
92
+
93
+
### 4. **Changes to Recommended Rule Set**
94
+
95
+
- The following rules are now included in `recommended`:
96
+
- `svelte/infinite-reactive-loop`
97
+
- `svelte/no-dom-manipulating`
98
+
- `svelte/no-dupe-on-directives`
99
+
- `svelte/no-reactive-reassign`
100
+
- `svelte/require-event-dispatcher-types`
101
+
- Many others (See [Changelog](https://github.com/sveltejs/eslint-plugin-svelte/releases/tag/eslint-plugin-svelte%403.0.0-next.16) for more details)
102
+
- `svelte/valid-compile` has been **removed** from `recommended`.
103
+
104
+
### 5. **Deprecated Rules**
105
+
106
+
- `svelte/no-dynamic-slot-name` is **deprecated**.
107
+
- `svelte/no-goto-without-base` is **deprecated** and replaced with `svelte/no-navigation-without-base`.
108
+
109
+
---
110
+
111
+
## New Features & Improvements
112
+
113
+
### 1. **Support for Svelte 5**
114
+
115
+
- Rules such as `no-not-function-handler` and `valid-prop-names-in-kit-pages` now support **Svelte 5**.
0 commit comments