build: lint .eslintrc.js file
Update default files to be linted with ESLint to include .eslintrc.js. PR-URL: https://github.com/nodejs/node/pull/19122 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
aa35074abb
commit
f05eaa4a53
2
Makefile
2
Makefile
@ -1101,7 +1101,7 @@ lint-md:
|
||||
@echo "To install (requires internet access) run: $ make lint-md-build"
|
||||
endif
|
||||
|
||||
LINT_JS_TARGETS = benchmark doc lib test tools
|
||||
LINT_JS_TARGETS = .eslintrc.js benchmark doc lib test tools
|
||||
|
||||
run-lint-js = tools/node_modules/eslint/bin/eslint.js --cache \
|
||||
--ext=.js,.mjs,.md $(LINT_JS_TARGETS) --ignore-pattern '!.eslintrc.js'
|
||||
|
@ -514,7 +514,7 @@ if defined lint_js_ci goto lint-js-ci
|
||||
if not defined lint_js goto exit
|
||||
if not exist tools\node_modules\eslint goto no-lint
|
||||
echo running lint-js
|
||||
%config%\node tools\node_modules\eslint\bin\eslint.js --cache --rule "linebreak-style: 0" --ext=.js,.mjs,.md benchmark doc lib test tools
|
||||
%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
|
||||
goto exit
|
||||
|
||||
:lint-js-ci
|
||||
|
Loading…
x
Reference in New Issue
Block a user