Add multiline-comment-style lint rule and fix violations

Enable multiline-comment-style with starred-block to require JSDoc-style
block comments with content on separate lines from the opening delimiter.
Auto-fix existing violations across the codebase.

Fixes #5899

Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>
This commit is contained in:
Cursor Agent
2026-05-26 20:15:55 +00:00
co-authored by Daniel Imms
parent 1a67b6f4b3
commit 4ec85e67ba
138 changed files with 3040 additions and 1837 deletions
@@ -21,8 +21,10 @@ test.describe('WebFontsAddon', () => {
deepStrictEqual(empty, []);
});
test.afterEach(async () => {
// for font loading tests to work, we have to remove added rules and fonts
// to work around the quite aggressive font caching done by the browsers
/*
* for font loading tests to work, we have to remove added rules and fonts
* to work around the quite aggressive font caching done by the browsers
*/
await ctx.page.evaluate(`
document.styleSheets[0].deleteRule(1);
document.styleSheets[0].deleteRule(0);
@@ -73,8 +75,10 @@ test.describe('WebFontsAddon', () => {
});
test('autoload & relayout from ctor', async ({ browser }) => {
// to make this test work, we exclude the default measurement char W (x57) by restricting unicode-range
// now the browser will postpone font loading until codepoint is hit --> wrong glyph metrics on first usage
/*
* to make this test work, we exclude the default measurement char W (x57) by restricting unicode-range
* now the browser will postpone font loading until codepoint is hit --> wrong glyph metrics on first usage
*/
const data = await ctx.page.evaluate(`
document.styleSheets[0].insertRule("@font-face {font-family: Kongtext; src: url(/fonts/kongtext.regular.ttf) format('truetype'); unicode-range: U+00A0-00FF}", 0);
`);
@@ -97,8 +101,10 @@ test.describe('WebFontsAddon', () => {
deepStrictEqual(await getDocumentFonts(), [{ family: 'Kongtext', status: 'unloaded' }]);
}
// good case: addon fixes layout for webfont in ctor
// the relayout happens async, so wait a bit with a promise
/*
* good case: addon fixes layout for webfont in ctor
* the relayout happens async, so wait a bit with a promise
*/
await ctx.page.evaluate(`
window.helperTerm.dispose();
window.helperTerm = new Terminal({fontFamily: '"Kongtext", ' + term.options.fontFamily});