Skip to content

Commit f05eaa4

Browse files
Trottapapirovski
authored andcommitted
build: lint .eslintrc.js file
Update default files to be linted with ESLint to include .eslintrc.js. PR-URL: #19122 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Khaidi Chu <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent aa35074 commit f05eaa4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,7 @@ lint-md:
11011101
@echo "To install (requires internet access) run: $ make lint-md-build"
11021102
endif
11031103

1104-
LINT_JS_TARGETS = benchmark doc lib test tools
1104+
LINT_JS_TARGETS = .eslintrc.js benchmark doc lib test tools
11051105

11061106
run-lint-js = tools/node_modules/eslint/bin/eslint.js --cache \
11071107
--ext=.js,.mjs,.md $(LINT_JS_TARGETS) --ignore-pattern '!.eslintrc.js'

vcbuild.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ if defined lint_js_ci goto lint-js-ci
514514
if not defined lint_js goto exit
515515
if not exist tools\node_modules\eslint goto no-lint
516516
echo running lint-js
517-
%config%\node tools\node_modules\eslint\bin\eslint.js --cache --rule "linebreak-style: 0" --ext=.js,.mjs,.md benchmark doc lib test tools
517+
%config%\node tools\node_modules\eslint\bin\eslint.js --cache --rule "linebreak-style: 0" --ext=.js,.mjs,.md .eslintrc.js benchmark doc lib test tools
518518
goto exit
519519

520520
:lint-js-ci

0 commit comments

Comments
 (0)