mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
build: support lint-js-fix in vcbuild.bat
PR-URL: https://github.com/nodejs/node/pull/53695 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
This commit is contained in:
parent
5f52c8ae54
commit
accf2acdfb
11
vcbuild.bat
11
vcbuild.bat
|
|
@ -41,6 +41,7 @@ set msi=
|
|||
set upload=
|
||||
set licensertf=
|
||||
set lint_js=
|
||||
set lint_js_fix=
|
||||
set lint_cpp=
|
||||
set lint_md=
|
||||
set lint_md_build=
|
||||
|
|
@ -115,6 +116,7 @@ if /i "%1"=="test-v8-benchmarks" set test_v8_benchmarks=1&set custom_v8_test=1&g
|
|||
if /i "%1"=="test-v8-all" set test_v8=1&set test_v8_intl=1&set test_v8_benchmarks=1&set custom_v8_test=1&goto arg-ok
|
||||
if /i "%1"=="lint-cpp" set lint_cpp=1&goto arg-ok
|
||||
if /i "%1"=="lint-js" set lint_js=1&goto arg-ok
|
||||
if /i "%1"=="lint-js-fix" set lint_js_fix=1&goto arg-ok
|
||||
if /i "%1"=="jslint" set lint_js=1&echo Please use lint-js instead of jslint&goto arg-ok
|
||||
if /i "%1"=="lint-md" set lint_md=1&goto arg-ok
|
||||
if /i "%1"=="lint-md-build" set lint_md_build=1&goto arg-ok
|
||||
|
|
@ -730,10 +732,17 @@ goto lint-js
|
|||
goto lint-js
|
||||
|
||||
:lint-js
|
||||
if not defined lint_js goto lint-md-build
|
||||
if not defined lint_js goto lint-js-fix
|
||||
if not exist tools\eslint\node_modules\eslint goto no-lint
|
||||
echo running lint-js
|
||||
%node_exe% tools\eslint\node_modules\eslint\bin\eslint.js --cache --max-warnings=0 --report-unused-disable-directives --rule "@stylistic/js/linebreak-style: 0" eslint.config.mjs benchmark doc lib test tools
|
||||
goto lint-js-fix
|
||||
|
||||
:lint-js-fix
|
||||
if not defined lint_js_fix goto lint-md-build
|
||||
if not exist tools\eslint\node_modules\eslint goto no-lint
|
||||
echo running lint-js-fix
|
||||
%node_exe% tools\eslint\node_modules\eslint\bin\eslint.js --cache --max-warnings=0 --report-unused-disable-directives --rule "@stylistic/js/linebreak-style: 0" eslint.config.mjs benchmark doc lib test tools --fix
|
||||
goto lint-md-build
|
||||
|
||||
:no-lint
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user