Linting Suppression
Chester Wyke August 19, 2022 Updated: April 26, 2025 #JavascriptForeword
These techniques are tested on PyCharm but some like the global variables one are known to work on NetBeans as well.
Global variable
Notice: Superseded by using js_lib
Use a comma separated list of the global variables in a comment.
/* global SpreadsheetApp, Logger, DriveApp, GmailApp, Session */
Default Types supported in docstrings
Source: https://medium.com/@trukrs/type-safe-javascript-with-jsdoc-7a2a63209b76
nullundefinedbooleannumberstringArrayor[]Objector{}any(Added by me because it makes sense)
You can have a typed array: any[], number[], string[]. You could also have an array of object types: Employee[].