Remove "debug" from allowed console methods in ESLint configuration

This commit is contained in:
4Source 2026-03-16 14:02:57 +01:00
parent f965aa80c2
commit 005663f01a
2 changed files with 3 additions and 4 deletions

View file

@ -9,13 +9,12 @@
"allow": [
"warn",
"error",
"debug"
]
}
],
"multiline-comment-style": [
"error",
"starred-block"
"starred-block",
]
}
}

View file

@ -178,12 +178,12 @@ export class OpenEditorsView extends View {
callback: tree => {
const leaf = this.app.workspace.getLeafById(tree.id);
if (!leaf) {
console.debug('Leaf not found with the id ', tree.id);
console.warn('Leaf not found with the id ', tree.id);
return;
}
const parent = leaf?.parent;
if (!parent) {
console.debug('Parent of leaf not found!');
console.warn('Parent of leaf not found!');
return;
}
leafParent = parent;