Add no-yoda rule to ESLint config

This commit is contained in:
MrTimscampi 2020-07-30 16:05:34 +02:00
parent 8e7f1aa0d7
commit 642e2624e5

View file

@ -46,7 +46,8 @@ module.exports = {
'quotes': ['error', 'single', { 'avoidEscape': true, 'allowTemplateLiterals': false }],
'semi': ['error'],
'space-before-blocks': ['error'],
'space-infix-ops': 'error'
'space-infix-ops': 'error',
'yoda': 'error'
},
overrides: [
{