File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ set msi=
41
41
set upload =
42
42
set licensertf =
43
43
set lint_js =
44
+ set lint_js_fix =
44
45
set lint_cpp =
45
46
set lint_md =
46
47
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
115
116
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
116
117
if /i " %1 " == " lint-cpp" set lint_cpp = 1& goto arg-ok
117
118
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
118
120
if /i " %1 " == " jslint" set lint_js = 1& echo Please use lint-js instead of jslint& goto arg-ok
119
121
if /i " %1 " == " lint-md" set lint_md = 1& goto arg-ok
120
122
if /i " %1 " == " lint-md-build" set lint_md_build = 1& goto arg-ok
@@ -729,10 +731,17 @@ goto lint-js
729
731
goto lint-js
730
732
731
733
:lint-js
732
- if not defined lint_js goto lint-md-build
734
+ if not defined lint_js goto lint-js-fix
733
735
if not exist tools\eslint\node_modules\eslint goto no-lint
734
736
echo running lint-js
735
737
%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
736
745
goto lint-md-build
737
746
738
747
:no-lint
You can’t perform that action at this time.
0 commit comments