Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@
{ "selector": "typeLike", "format": ["PascalCase"] },
{ "selector": "interface", "format": ["PascalCase"], "prefix": ["I"] }
],
"@typescript-eslint/no-confusing-void-expression": [
"warn",
{ "ignoreArrowShorthand": true }
],
"@typescript-eslint/no-useless-constructor": "warn",
"@typescript-eslint/prefer-namespace-keyword": "warn",
"@typescript-eslint/type-annotation-spacing": "warn",
Expand Down
8 changes: 2 additions & 6 deletions addons/xterm-addon-fit/test/FitAddon.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ describe('FitAddon', () => {
});

describe('proposeDimensions', () => {
afterEach(async () => {
return await unloadFit();
});
afterEach(() => unloadFit());

it('default', async function(): Promise<any> {
await loadFit();
Expand Down Expand Up @@ -82,9 +80,7 @@ describe('FitAddon', () => {
});

describe('fit', () => {
afterEach(async () => {
return await unloadFit();
});
afterEach(() => unloadFit());

it('default', async function(): Promise<any> {
await loadFit();
Expand Down
2 changes: 1 addition & 1 deletion src/browser/public/Terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export class Terminal extends Disposable implements ITerminalApi {
this._core.clearTextureAtlas();
}
public loadAddon(addon: ITerminalAddon): void {
return this._addonManager.loadAddon(this, addon);
this._addonManager.loadAddon(this, addon);
}
public static get strings(): ILocalizableStrings {
return Strings;
Expand Down
2 changes: 1 addition & 1 deletion src/headless/public/Terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export class Terminal extends Disposable implements ITerminalApi {
}
public loadAddon(addon: ITerminalAddon): void {
// TODO: This could cause issues if the addon calls renderer apis
return this._addonManager.loadAddon(this as any, addon);
this._addonManager.loadAddon(this as any, addon);
}

private _verifyIntegers(...values: number[]): void {
Expand Down