Skip to content

Instantly share code, notes, and snippets.

@alator21
Last active November 5, 2018 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alator21/dbd6116c258d297c198bf6937474d26c to your computer and use it in GitHub Desktop.
Save alator21/dbd6116c258d297c198bf6937474d26c to your computer and use it in GitHub Desktop.
JSHint Options for p5.dom.js
//Inspired by Spaxe (https://github.com/Spaxe)
//Check his gist for p5.js(https://gist.github.com/Spaxe/8704847bfd982139cad3)
"globals": {
//[19]
"select": true,
"selectAll": true,
"removeElements": true,
"createDiv": true,
"createP": true,
"createSpan": true,
"createImg": true,
"createA": true,
"createSlider": true,
"createButton": true,
"createCheckbox": true,
"createSelect": true,
"createRadio": true,
"createInput": true,
"createFileInput": true,
"createVideo": true,
"createAudio": true,
"createCapture": true,
"createElement": true,
//p5.Element[34]
"elt": true,
"parent": true,
"id": true,
"class": true,
"mousePressed": true,
"doubleClicked": true,
"mouseWheel": true,
"mouseReleased": true,
"mouseClicked": true,
"mouseMoved": true,
"mouseOver": true,
"changed": true,
"input": true,
"mouseOut": true,
"touchStarted": true,
"touchMoved": true,
"touchEnded": true,
"dragOver": true,
"dragLeave": true,
"drop": true,
"addClass": true,
"removeClass": true,
"child": true,
"center": true,
"html": true,
"position": true,
"style": true,
"attribute": true,
"removeAttribute": true,
"value": true,
"show": true,
"hide": true,
"size": true,
"remove": true,
//p5.MediaElement[19]
"src": true,
"play": true,
"stop": true,
"pause": true,
"loop": true,
"noLoop": true,
"autoplay": true,
"volume": true,
"speed": true,
"time": true,
"duration": true,
"onended": true,
"connect": true,
"disconnect": true,
"showControls": true,
"hideControls": true,
"addCue": true,
"removeCue": true,
"clearCues": true,
//p5.File[6]
"file": true,
"type": true,
"subtype": true,
"name": true,
"size": true,
"data": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment