From 49e0480f785151760b07efa7c22d388a515b1258 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Sat, 15 Oct 2022 08:39:32 -0700 Subject: [PATCH] Add rule jsdoc/check-alignment --- .eslintrc.json | 1 + addons/xterm-addon-canvas/src/BaseRenderLayer.ts | 10 +++++----- src/common/parser/Constants.ts | 4 ++-- src/common/parser/Types.d.ts | 4 ++-- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 8064820e..58082186 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -142,6 +142,7 @@ "warn", "always" ], + "jsdoc/check-alignment": 1, "jsdoc/check-param-names": 1, "keyword-spacing": "warn", "new-parens": "warn", diff --git a/addons/xterm-addon-canvas/src/BaseRenderLayer.ts b/addons/xterm-addon-canvas/src/BaseRenderLayer.ts index 872d8cfc..29c85558 100644 --- a/addons/xterm-addon-canvas/src/BaseRenderLayer.ts +++ b/addons/xterm-addon-canvas/src/BaseRenderLayer.ts @@ -162,11 +162,11 @@ export abstract class BaseRenderLayer extends Disposable implements IRenderLayer } /** - * Fills a 1px line (2px on HDPI) at the middle of the cell. This uses the - * existing fillStyle on the context. - * @param x The column to fill. - * @param y The row to fill. - */ + * Fills a 1px line (2px on HDPI) at the middle of the cell. This uses the + * existing fillStyle on the context. + * @param x The column to fill. + * @param y The row to fill. + */ protected _fillMiddleLineAtCells(x: number, y: number, width: number = 1): void { const cellOffset = Math.ceil(this._scaledCellHeight * 0.5); this._ctx.fillRect( diff --git a/src/common/parser/Constants.ts b/src/common/parser/Constants.ts index 85156c3e..7fe24f34 100644 --- a/src/common/parser/Constants.ts +++ b/src/common/parser/Constants.ts @@ -24,8 +24,8 @@ export const enum ParserState { } /** -* Internal actions of EscapeSequenceParser. -*/ + * Internal actions of EscapeSequenceParser. + */ export const enum ParserAction { IGNORE = 0, ERROR = 1, diff --git a/src/common/parser/Types.d.ts b/src/common/parser/Types.d.ts index 3a621eab..a1ea0ec2 100644 --- a/src/common/parser/Types.d.ts +++ b/src/common/parser/Types.d.ts @@ -142,8 +142,8 @@ export type PrintFallbackHandlerType = PrintHandlerType; /** -* EscapeSequenceParser interface. -*/ + * EscapeSequenceParser interface. + */ export interface IEscapeSequenceParser extends IDisposable { /** * Preceding codepoint to get REP working correctly.