Skip to content

Commit

Permalink
Merge pull request #4726 from Tyriar/no_confusing
Browse files Browse the repository at this point in the history
Warn on eslint rule @typescript-eslint/no-confusing-void-expression
  • Loading branch information
Tyriar authored Aug 24, 2023
2 parents 2835976 + f9dc26d commit 40e51ab
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
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

0 comments on commit 40e51ab

Please sign in to comment.