summaryrefslogtreecommitdiff
path: root/tools/jslint.js
Commit message (Collapse)AuthorAgeFilesLines
* doc, tools: add doc linting to CIVse Mozhet Byt2017-04-251-1/+3
| | | | | | | | | | PR-URL: https://github.com/nodejs/node/pull/12640 Fixes: https://github.com/nodejs/node/issues/12635 Refs: https://github.com/nodejs/node/pull/12563 Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
* tools: add -F flag for fixing lint issuesRich Trott2016-05-021-2/+13
| | | | | | | | | Add `-F` flag to `jslint.js` which enables the automatic fixing of issues that are fixable. PR-URL: https://github.com/nodejs/node/pull/6483 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net>
* tools: fix exit code when linting from CIBrian White2016-04-291-5/+15
| | | | | | | | | | | | | | | Before this, if there were lint errors reported by `make jslint-ci`, the process would still exit with an exit code of zero. This commit fixes that to align with `make jslint` (exit with non-zero on lint errors). PR-URL: https://github.com/nodejs/node/pull/6412 Reviewed-By: Johan Bergström <bugs@bergstroem.nu> Reviewed-By: Phillip Johnsen <johphi@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
* tools: move message listener to worker objectsBrian White2016-04-181-15/+15
| | | | | | | | | | | | Moving the `message` event listener from the cluster object to each worker object allows easier backporting of the recent jslint changes since v5.x and older do not have v6.x's `worker` parameter in the cluster object's `message` event. PR-URL: https://github.com/nodejs/node/pull/6212 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
* tools: improve js linterBrian White2016-04-151-0/+262
This commit switches from the eslint command-line tool to a custom tool that uses eslint programmatically in order to perform linting in parallel and to display linting results incrementally instead of buffering them until the end. Fixes: https://github.com/nodejs/node/issues/5596 PR-URL: https://github.com/nodejs/node/pull/5638 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Johan Bergström <bugs@bergstroem.nu>