Skip to content

Commit aa0e416

Browse files
committed
fix(base): Disable autofix for unicorn/no-lonely-if rule
Hurts during development process
1 parent dc14652 commit aa0e416

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configurations/base/plugins/unicorn.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ module.exports = {
141141

142142
// Disallow `if` statements as the only statement in `if` blocks without `else` (autofixable)
143143
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-lonely-if.md
144-
'+unicorn/no-lonely-if': 'error',
144+
'!unicorn/no-lonely-if': 'warn',
145145

146146
// Disallow nested ternary expressions (partly autofixable).
147147
// It allows nested, but they should be wrapped in parentheses (thats correct).

0 commit comments

Comments
 (0)