Linting Suppression
Foreword 🔗
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
null
undefined
boolean
number
string
Array
or[]
Object
or{}
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[]
.