Disable yoda

While yoda does provide a nice tweak to legibility, it does not actually
overcome a specific shortcoming in javascript. Rather than add
Yet Another Rule (tm) for engineers to have to worry about, we
should disable this.

http://eslint.org/docs/rules/yoda

Change-Id: I16a0bac386393ee0ae20c7d506c443b439a08ffe
This commit is contained in:
Michael Krotscheck 2015-08-28 08:56:15 -07:00
parent 165bb5bde2
commit 6e1bfbd188
1 changed files with 1 additions and 3 deletions

View File

@ -407,9 +407,7 @@ rules:
# Require or disallow Yoda conditions.
# http://eslint.org/docs/rules/yoda
yoda:
- 0 # TODO(krotscheck): Discuss & Activate
- "never"
yoda: 0
#############################################################################