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:
co-authored by
Daniel Imms
parent
1a67b6f4b3
commit
4ec85e67ba
@@ -26,18 +26,24 @@ test.describe('FitAddon', () => {
|
||||
`);
|
||||
});
|
||||
|
||||
// test.beforeEach(async function(): Promise<any> {
|
||||
// await ctx.page.evaluate(`document.querySelector('#terminal-container').style.display=''`);
|
||||
// await openTerminal(page);
|
||||
// });
|
||||
/*
|
||||
* test.beforeEach(async function(): Promise<any> {
|
||||
* await ctx.page.evaluate(`document.querySelector('#terminal-container').style.display=''`);
|
||||
* await openTerminal(page);
|
||||
* });
|
||||
*/
|
||||
|
||||
// after(async () => {
|
||||
// await browser.close();
|
||||
// });
|
||||
/*
|
||||
* after(async () => {
|
||||
* await browser.close();
|
||||
* });
|
||||
*/
|
||||
|
||||
// afterEach(async function(): Promise<any> {
|
||||
// await ctx.proxy.dispose();
|
||||
// });
|
||||
/*
|
||||
* afterEach(async function(): Promise<any> {
|
||||
* await ctx.proxy.dispose();
|
||||
* });
|
||||
*/
|
||||
|
||||
test('no terminal', async function(): Promise<any> {
|
||||
await ctx.page.evaluate(`window.fit2 = new FitAddon();`);
|
||||
@@ -79,8 +85,10 @@ test.describe('FitAddon', () => {
|
||||
await ctx.page.evaluate(`window.term.open(document.querySelector('#terminal-container'))`);
|
||||
await setDimensions();
|
||||
const dimensions: { cols: number, rows: number } | undefined = await ctx.page.evaluate(`window.fit.proposeDimensions()`);
|
||||
// The value of dims will be undefined if the char measure strategy falls back to the DOM
|
||||
// method, so only assert if it's not undefined.
|
||||
/*
|
||||
* The value of dims will be undefined if the char measure strategy falls back to the DOM
|
||||
* method, so only assert if it's not undefined.
|
||||
*/
|
||||
if (dimensions) {
|
||||
ok(dimensions.cols > 85);
|
||||
ok(dimensions.cols < 88);
|
||||
|
||||
Reference in New Issue
Block a user