[Doc] Add JSDoc linter & general comment clean up (#611)

- Prefer comments above lines over end-of-line comments
  - Makes auto-formatting easier
  - Subjective, but it is generally easier to read in JS
- Standardises JSdoc format
- Auto-fixes for many issues (applies on save w/ESLint extension)
This commit is contained in:
filtered
2025-02-26 19:54:18 +11:00
committed by GitHub
parent d849fcd00c
commit 9ded97d189
21 changed files with 473 additions and 252 deletions

View File

@@ -216,7 +216,7 @@ export interface IBaseWidget<TElement extends HTMLElement = HTMLElement> {
* @param pointer The CanvasPointer handling this event
* @param node The node this widget belongs to
* @param canvas The LGraphCanvas where this event originated
* @return Returning `true` from this callback forces Litegraph to ignore the event and
* @returns Returning `true` from this callback forces Litegraph to ignore the event and
* not process it any further.
*/
onPointerDown?(pointer: CanvasPointer, node: LGraphNode, canvas: LGraphCanvas): boolean