Skip to content

Commit 350e699

Browse files
avivkellertargos
authored andcommitted
build: support lint-js-fix in vcbuild.bat
PR-URL: #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>
1 parent 1597a11 commit 350e699

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

vcbuild.bat

+10-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ set msi=
4141
set upload=
4242
set licensertf=
4343
set lint_js=
44+
set lint_js_fix=
4445
set lint_cpp=
4546
set lint_md=
4647
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
115116
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
116117
if /i "%1"=="lint-cpp" set lint_cpp=1&goto arg-ok
117118
if /i "%1"=="lint-js" set lint_js=1&goto arg-ok
119+
if /i "%1"=="lint-js-fix" set lint_js_fix=1&goto arg-ok
118120
if /i "%1"=="jslint" set lint_js=1&echo Please use lint-js instead of jslint&goto arg-ok
119121
if /i "%1"=="lint-md" set lint_md=1&goto arg-ok
120122
if /i "%1"=="lint-md-build" set lint_md_build=1&goto arg-ok
@@ -729,10 +731,17 @@ goto lint-js
729731
goto lint-js
730732

731733
:lint-js
732-
if not defined lint_js goto lint-md-build
734+
if not defined lint_js goto lint-js-fix
733735
if not exist tools\eslint\node_modules\eslint goto no-lint
734736
echo running lint-js
735737
%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
738+
goto lint-js-fix
739+
740+
:lint-js-fix
741+
if not defined lint_js_fix goto lint-md-build
742+
if not exist tools\eslint\node_modules\eslint goto no-lint
743+
echo running lint-js-fix
744+
%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
736745
goto lint-md-build
737746

738747
:no-lint

0 commit comments

Comments
 (0)