We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b033d38 commit 46c1d99Copy full SHA for 46c1d99
Makefile
@@ -1031,6 +1031,13 @@ LINT_JS_CMD = tools/eslint/bin/eslint.js --cache \
1031
--rulesdir=tools/eslint-rules --ext=.js,.mjs,.md \
1032
$(LINT_JS_TARGETS)
1033
1034
+lint-js-fix:
1035
+ @if [ -x $(NODE) ]; then \
1036
+ $(NODE) $(LINT_JS_CMD) --fix; \
1037
+ else \
1038
+ node $(LINT_JS_CMD) --fix; \
1039
+ fi
1040
+
1041
lint-js:
1042
@echo "Running JS linter..."
1043
@if [ -x $(NODE) ]; then \
@@ -1177,6 +1184,7 @@ lint-clean:
1177
1184
lint-cpp \
1178
1185
lint-js \
1179
1186
lint-js-ci \
1187
+ lint-js-fix \
1180
1188
list-gtests \
1181
1189
lint-md \
1182
1190
lint-md-build \
0 commit comments