Add no-yoda rule to ESLint config
This commit is contained in:
parent
8e7f1aa0d7
commit
642e2624e5
1 changed files with 2 additions and 1 deletions
|
@ -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: [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue