File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ set msi=
4141set upload =
4242set licensertf =
4343set lint_js =
44+ set lint_js_fix =
4445set lint_cpp =
4546set lint_md =
4647set lint_md_build =
@@ -115,6 +116,7 @@ if /i "%1"=="test-v8-benchmarks" set test_v8_benchmarks=1&set custom_v8_test=1&g
115116if /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
116117if /i " %1 " == " lint-cpp" set lint_cpp = 1& goto arg-ok
117118if /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
118120if /i " %1 " == " jslint" set lint_js = 1& echo Please use lint-js instead of jslint& goto arg-ok
119121if /i " %1 " == " lint-md" set lint_md = 1& goto arg-ok
120122if /i " %1 " == " lint-md-build" set lint_md_build = 1& goto arg-ok
@@ -730,10 +732,17 @@ goto lint-js
730732goto lint-js
731733
732734:lint-js
733- if not defined lint_js goto lint-md-build
735+ if not defined lint_js goto lint-js-fix
734736if not exist tools\eslint\node_modules\eslint goto no-lint
735737echo running lint-js
736738%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
739+ goto lint-js-fix
740+
741+ :lint-js-fix
742+ if not defined lint_js_fix goto lint-md-build
743+ if not exist tools\eslint\node_modules\eslint goto no-lint
744+ echo running lint-js-fix
745+ %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
737746goto lint-md-build
738747
739748:no-lint
You can’t perform that action at this time.
0 commit comments