From f05eaa4a537ed7ef57814d951d64c25ef2844720 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 3 Mar 2018 21:47:41 -0800 Subject: [PATCH] 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 Reviewed-By: Khaidi Chu Reviewed-By: Luigi Pinca Reviewed-By: Benjamin Gruenbaum Reviewed-By: Gibson Fahnestock Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- Makefile | 2 +- vcbuild.bat | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cd7d33fd655d15..89739f3eadeb45 100644 --- a/Makefile +++ b/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' diff --git a/vcbuild.bat b/vcbuild.bat index a66449283192c3..b3ec5aee96cca8 100644 --- a/vcbuild.bat +++ b/vcbuild.bat @@ -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