Add brace-style lint rule and fix violations
Enforce 1tbs brace style with allowSingleLine per #5900. Auto-fix else/catch brace placement across the codebase and move a comment in font.ts that blocked else-if formatting. Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>
This commit is contained in:
co-authored by
Daniel Imms
parent
e749cb6125
commit
1c42ae9af4
@@ -521,8 +521,7 @@ function initAddons(term: Terminal): void {
|
||||
} else if (name === 'webLinks') {
|
||||
controlBar.setTabVisible('addon-web-links', true);
|
||||
}
|
||||
}
|
||||
catch {
|
||||
} catch {
|
||||
addon.instance = undefined;
|
||||
checkbox.checked = false;
|
||||
checkbox.disabled = true;
|
||||
|
||||
Reference in New Issue
Block a user