Commit Graph

1 Commits (3c46bb9931ecea71167342322e09121ee48cde8e)

Author SHA1 Message Date
Rich Trott 4e5cf85ada tools: add lint rule to enforce timer arguments
Add a custom ESLint rule to require that setTimeout() and setInterval()
get called with at least two arguments. This prevents omitting the
duration or interval.

PR-URL: https://github.com/nodejs/node/pull/9472
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2017-01-06 15:24:28 -08:00