Skip to content

Commit bfd8a29

Browse files
authored
fix: disable no-self-assign rule (#455)
1 parent 495218b commit bfd8a29

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/mighty-paws-play.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-plugin-svelte": patch
3+
---
4+
5+
disable `no-self-assign` rule in Svelte files

src/configs/base.ts

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ export = {
88
// ESLint core rules known to cause problems with `.svelte`.
99
"no-inner-declarations": "off", // The AST generated by svelte-eslint-parser will false positives in it rule because the root node of the script is not the `Program`.
1010
// "no-irregular-whitespace": "off",
11+
// Self assign is one of way to update reactive value in Svelte.
12+
"no-self-assign": "off",
1113

1214
// eslint-plugin-svelte rules
1315
"svelte/comment-directive": "error",

0 commit comments

Comments
 (0)