From bf14dbe123aca959d830bdf0e3e5cf156063f852 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Fri, 21 Apr 2017 17:43:49 +0300 Subject: [PATCH] tools: add `root: true` in main .eslintrc.yaml This option prevents ESlint from unnecessary searching in parent folders. It also protects ESlint rules from accidental rewriting by a config in a parent folder. PR-URL: https://github.com/nodejs/node/pull/12570 Fixes: https://github.com/nodejs/node/issues/12566 Reviewed-By: Richard Lau Reviewed-By: Roman Reiss Reviewed-By: Rich Trott Reviewed-By: Colin Ihrig Reviewed-By: Yuta Hiroto Reviewed-By: James M Snell Reviewed-By: Teddy Katz Reviewed-By: Gibson Fahnestock --- .eslintrc.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.eslintrc.yaml b/.eslintrc.yaml index e4df6e6e4f2462..de26dadbcc03dc 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -1,3 +1,5 @@ +root: true + env: node: true es6: true