Enable unicorn/no-duplicate-loops rule (#19370)

This commit is contained in:
fisker Cheung authored and GitHub committed 2026-06-16 03:55:19 +08:00
1 parent ba5261dc0c
commit cf5dec976a
3 files changed
+11 -6

No files matched your search

+5 -3
View File
@@ -30,9 +30,11 @@ function setup(props, { slots }) {
// Should not trigger format when these changes
const ignoredKeys = new Set(["showSidebar", "showInput"]);
for (const key of Object.keys(settings).filter(
(key) => !ignoredKeys.has(key),
)) {
for (const key of Object.keys(settings)) {
if (ignoredKeys.has(key)) {
continue;
}
watch(
() => settings[key],
(newValue, oldValue) => {