We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unicorn/no-lonely-if
1 parent dc14652 commit aa0e416Copy full SHA for aa0e416
configurations/base/plugins/unicorn.js
@@ -141,7 +141,7 @@ module.exports = {
141
142
// Disallow `if` statements as the only statement in `if` blocks without `else` (autofixable)
143
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-lonely-if.md
144
- '+unicorn/no-lonely-if': 'error',
+ '!unicorn/no-lonely-if': 'warn',
145
146
// Disallow nested ternary expressions (partly autofixable).
147
// It allows nested, but they should be wrapped in parentheses (thats correct).
0 commit comments