Add eslint rule to prevent "lonely" if statements

This commit is contained in:
Bill Thornton 2023-09-12 17:01:34 -04:00
parent c506d0b753
commit aef99ce247

View file

@ -48,6 +48,7 @@ module.exports = {
'no-empty-function': ['error'],
'no-extend-native': ['error'],
'no-floating-decimal': ['error'],
'no-lonely-if': ['error'],
'no-multi-spaces': ['error'],
'no-multiple-empty-lines': ['error', { 'max': 1 }],
'no-nested-ternary': ['error'],