Skip to content

Commit

Permalink
Loosen yoda rule to allow yoda comparisons
Browse files Browse the repository at this point in the history
Unfortunately, this also allows ("red" !== foo) but there's no way
to configure ESLint exactly how we want it, so we're going with
extra loose instead of extra strict.

Resolves #1
  • Loading branch information
RyanZim committed Jul 18, 2018
1 parent ec227dd commit 0597335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -41,7 +41,7 @@ module.exports = {
'no-useless-call': 'error',
'no-useless-return': 'error',
'no-with': 'error',
yoda: 'error',
yoda: ['error', 'never', { onlyEquality: true }],
strict: 'error',
'no-undef-init': 'error',
'no-use-before-define': ['error', 'nofunc'],
Expand Down

0 comments on commit 0597335

Please sign in to comment.