Add .eslintrc rule to check JSDoc syntax

And fix the broken syntax rules
This commit is contained in:
Tim Mickel 2016-06-08 16:57:08 -04:00
parent 8081ec3a16
commit 1f1a4941f3
7 changed files with 17 additions and 11 deletions
src/engine

View file

@ -26,6 +26,7 @@ Sequencer.WORK_TIME = 10;
/**
* Step through all threads in `this.threads`, running them in order.
* @param {Array.<Thread>} threads List of which threads to step.
* @return {Array.<Thread>} All threads which have finished in this iteration.
*/
Sequencer.prototype.stepThreads = function (threads) {
@ -139,6 +140,9 @@ Sequencer.prototype.stepThread = function (thread) {
/**
* A callback for the primitive to start hats.
* @todo very hacked...
* Provide a callback that is passed in a block and returns true
* if it is a hat that should be triggered.
* @param {Function} callback Provided callback.
*/
var startHats = function(callback) {
var stacks = instance.runtime.blocks.getStacks();