Enable unicorn/no-duplicate-loops rule (#19370)
This commit is contained in:
1 parent
ba5261dc0c
commit
cf5dec976a
3 files changed
+11
-6
No files matched your search
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user