diff options
author | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2017-04-21 17:43:49 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-04-24 19:34:38 +0300 |
commit | bf14dbe123aca959d830bdf0e3e5cf156063f852 (patch) | |
tree | 1ff8d41df170689ce4ddf6418af54097949ee662 /.eslintrc.yaml | |
parent | 43c1b625a693db933ea7d132718e2f77b9cdb180 (diff) |
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 <riclau@uk.ibm.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Diffstat (limited to '.eslintrc.yaml')
-rw-r--r-- | .eslintrc.yaml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.eslintrc.yaml b/.eslintrc.yaml index e4df6e6e4f2..de26dadbcc0 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -1,3 +1,5 @@ +root: true + env: node: true es6: true |