Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2021-12-02 10:41:26 +0300
committerRich Trott <rtrott@gmail.com>2021-12-05 06:04:05 +0300
commit6dae965c2d6aca0be1fc5fb2bd872fc981673298 (patch)
treeb7a374f18cf2f9354b7bc285e4514ffef157ef7c /vcbuild.bat
parent069d2bd2507b62d819b590df859e0db79fb7996f (diff)
tools: use jsdoc recommended rules
Enable all recommended JSDoc linting rules and disable the ones we don't (yet?) meet. They can be enabled one by one by removing the lines that turn them off. This requires adding --max-warnings to the ESLint invocations in Makefile and vcbuild.bat because the preset enables the recommended rules as warnings and not errors. PR-URL: https://github.com/nodejs/node/pull/41057 Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'vcbuild.bat')
-rw-r--r--vcbuild.bat2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcbuild.bat b/vcbuild.bat
index 49a05602d6d..d1a9e592551 100644
--- a/vcbuild.bat
+++ b/vcbuild.bat
@@ -699,7 +699,7 @@ goto lint-js
if not defined lint_js goto lint-md-build
if not exist tools\node_modules\eslint goto no-lint
echo running lint-js
-%node_exe% tools\node_modules\eslint\bin\eslint.js --cache --report-unused-disable-directives --rule "linebreak-style: 0" .eslintrc.js benchmark doc lib test tools
+%node_exe% tools\node_modules\eslint\bin\eslint.js --cache --max-warnings=0 --report-unused-disable-directives --rule "linebreak-style: 0" .eslintrc.js benchmark doc lib test tools
goto lint-md-build
:no-lint