Add no-multi-asterisks rule

This commit is contained in:
Daniel Imms
2022-10-15 08:43:06 -07:00
parent 9f1a71485c
commit 5204374494
5 changed files with 5 additions and 4 deletions
+1
View File
@@ -144,6 +144,7 @@
], ],
"jsdoc/check-alignment": 1, "jsdoc/check-alignment": 1,
"jsdoc/check-param-names": 1, "jsdoc/check-param-names": 1,
"jsdoc/no-multi-asterisks": 1,
"keyword-spacing": "warn", "keyword-spacing": "warn",
"new-parens": "warn", "new-parens": "warn",
"no-duplicate-imports": "warn", "no-duplicate-imports": "warn",
+1 -1
View File
@@ -64,7 +64,7 @@ export interface IRenderLayer extends IDisposable {
handleBlur(): void; handleBlur(): void;
/** /**
* * Called when the terminal gets focus. * Called when the terminal gets focus.
*/ */
handleFocus(): void; handleFocus(): void;
@@ -13,7 +13,7 @@ export interface IRenderLayer extends IDisposable {
handleBlur(terminal: Terminal): void; handleBlur(terminal: Terminal): void;
/** /**
* * Called when the terminal gets focus. * Called when the terminal gets focus.
*/ */
handleFocus(terminal: Terminal): void; handleFocus(terminal: Terminal): void;
+1 -1
View File
@@ -130,7 +130,7 @@ export class BufferLine implements IBufferLine {
* Test whether contains any chars. * Test whether contains any chars.
* Basically an empty has no content, but other cells might differ in FG/BG * Basically an empty has no content, but other cells might differ in FG/BG
* from real empty cells. * from real empty cells.
* */ */
public hasContent(index: number): number { public hasContent(index: number): number {
return this._data[index * CELL_SIZE + Cell.CONTENT] & Content.HAS_CONTENT_MASK; return this._data[index * CELL_SIZE + Cell.CONTENT] & Content.HAS_CONTENT_MASK;
} }
+1 -1
View File
@@ -47,7 +47,7 @@ export class CellData extends AttributeData implements ICellData {
* Note this returns the UTF32 codepoint of single chars, * Note this returns the UTF32 codepoint of single chars,
* if content is a combined string it returns the codepoint * if content is a combined string it returns the codepoint
* of the last char in string to be in line with code in CharData. * of the last char in string to be in line with code in CharData.
* */ */
public getCode(): number { public getCode(): number {
return (this.isCombined()) return (this.isCombined())
? this.combinedData.charCodeAt(this.combinedData.length - 1) ? this.combinedData.charCodeAt(this.combinedData.length - 1)