Repository navigation
doc, tools: doc linting does not work in CI #12635
Description
Activity
- addeddocIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.toolsIssues and PRs related to the tools directory.Issues and PRs related to the tools directory.
on Apr 25, 2017 It seems these blocks also need to be edited, but I don't know how exactly:
Lines 861 to 864 in b4fea2a
jslint-ci: @echo "Running JS linter..." $(NODE) tools/jslint.js $(PARALLEL_ARGS) -f tap -o test-eslint.tap \ benchmark lib test tools Lines 427 to 430 in b4fea2a
:jslint-ci echo running jslint-ci %config%\node tools\jslint.js -J -f tap -o test-eslint.tap benchmark lib test tools goto exit Maybe some other files are also concerned (
tools/jslint.js?).@vsemozhetbyt I think all you need to do is add
docto the list of directories being linted. They're in alphabetical order, so it would go betweenbenchmarkandlib. Basically, compare line 864 of the Makefile (the version you have linked above) with line 859. Similar change in vcbuild.bat.Reacted by Vse Mozhe Buty@vsemozhetbyt Oh, wait, yeah, you'll also need to add the
--ext=.js,.mdstuff. And that will involve editingtools/jslint.js(which was originally authored by @mscdex, who I'll @-mention just in case there's already a provision for adding arbitrary CLI flags or something).Reacted by Vse Mozhe ButyOh, I never realized that
jslint.jswas a runner for ESLint. I always thought it was running JSLint.Reacted by Vse Mozhe Buty@not-an-aardvark With
make jslint, we runeslintwith caching because people are likely to run that multiple times. On my machine, the first run takes about 23 seconds, but subsequent runs (once the cache is populated) are less than 2 seconds. Sweet!But on CI, there is no second run. There is only the first run. So
jslint.jsis used to parallelize the linting a bit to make it faster. On my machine, it takes about 15 seconds to run. It might be slightly longer once docs are added to its lint load the way they are formake jslint.Given that the linter is the fastest CI job we have, this is literally marginal value, but it used to run everywhere before ESLint had caching (or maybe before we knew to turn caching on).
Reacted by Vse Mozhe Buty@Trott @not-an-aardvark It seems we need to update
cliOptionsforCLIEnginewithextensionsproperty. I shall try a PR.Trying: #12640
- added a commit that references this issue
on Jul 27, 2026
It seems #12563 has not made all needed changes in build scripts to run doc linting on CI.
I've tried to skim PRs from this search:
is:pr is:open label:doc -label:stalledand run linter CI on them.See this inconsistency: #12549 (comment)
It seems, CI uses commands not addressed in the #12563 (see https://ci.nodejs.org/job/node-test-linter/8536/console).
What should be added?