We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74d5e6b commit 337d2b9Copy full SHA for 337d2b9
Makefile
@@ -1036,6 +1036,13 @@ LINT_JS_CMD = tools/eslint/bin/eslint.js --cache \
1036
--rulesdir=tools/eslint-rules --ext=.js,.mjs,.md \
1037
$(LINT_JS_TARGETS)
1038
1039
+lint-js-fix:
1040
+ @if [ -x $(NODE) ]; then \
1041
+ $(NODE) $(LINT_JS_CMD) --fix; \
1042
+ else \
1043
+ node $(LINT_JS_CMD) --fix; \
1044
+ fi
1045
+
1046
lint-js:
1047
@echo "Running JS linter..."
1048
@if [ -x $(NODE) ]; then \
@@ -1182,6 +1189,7 @@ lint-clean:
1182
1189
lint-cpp \
1183
1190
lint-js \
1184
1191
lint-js-ci \
1192
+ lint-js-fix \
1185
1193
list-gtests \
1186
1194
lint-md \
1187
1195
lint-md-build \
0 commit comments