Warn on eslint rule @typescript-eslint/no-confusing-void-expression

This commit is contained in:
Daniel Imms
2023-08-24 06:33:11 -07:00
parent 2268ae3967
commit 2fe082beea
4 changed files with 8 additions and 8 deletions
+4
View File
@@ -127,6 +127,10 @@
{ "selector": "typeLike", "format": ["PascalCase"] }, { "selector": "typeLike", "format": ["PascalCase"] },
{ "selector": "interface", "format": ["PascalCase"], "prefix": ["I"] } { "selector": "interface", "format": ["PascalCase"], "prefix": ["I"] }
], ],
"@typescript-eslint/no-confusing-void-expression": [
"warn",
{ "ignoreArrowShorthand": true }
],
"@typescript-eslint/prefer-namespace-keyword": "warn", "@typescript-eslint/prefer-namespace-keyword": "warn",
"@typescript-eslint/type-annotation-spacing": "warn", "@typescript-eslint/type-annotation-spacing": "warn",
"@typescript-eslint/quotes": [ "@typescript-eslint/quotes": [
+2 -6
View File
@@ -41,9 +41,7 @@ describe('FitAddon', () => {
}); });
describe('proposeDimensions', () => { describe('proposeDimensions', () => {
afterEach(async () => { afterEach(() => unloadFit());
return await unloadFit();
});
it('default', async function(): Promise<any> { it('default', async function(): Promise<any> {
await loadFit(); await loadFit();
@@ -82,9 +80,7 @@ describe('FitAddon', () => {
}); });
describe('fit', () => { describe('fit', () => {
afterEach(async () => { afterEach(() => unloadFit());
return await unloadFit();
});
it('default', async function(): Promise<any> { it('default', async function(): Promise<any> {
await loadFit(); await loadFit();
+1 -1
View File
@@ -236,7 +236,7 @@ export class Terminal extends Disposable implements ITerminalApi {
this._core.clearTextureAtlas(); this._core.clearTextureAtlas();
} }
public loadAddon(addon: ITerminalAddon): void { public loadAddon(addon: ITerminalAddon): void {
return this._addonManager.loadAddon(this, addon); this._addonManager.loadAddon(this, addon);
} }
public static get strings(): ILocalizableStrings { public static get strings(): ILocalizableStrings {
return Strings; return Strings;
+1 -1
View File
@@ -182,7 +182,7 @@ export class Terminal extends Disposable implements ITerminalApi {
} }
public loadAddon(addon: ITerminalAddon): void { public loadAddon(addon: ITerminalAddon): void {
// TODO: This could cause issues if the addon calls renderer apis // 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 { private _verifyIntegers(...values: number[]): void {