Skip to content

Commit

Permalink
Merge pull request #341 from bmish/unicorn-no-lonely-if-disable
Browse files Browse the repository at this point in the history
Disable `unicorn/no-lonely-if` rule in `base` config
  • Loading branch information
bmish authored Mar 24, 2021
2 parents ef69ae6 + 1845936 commit 9b2ef8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/config/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ module.exports = {
'unicorn/import-style': 'off', // Too noisy, not useful enough.
'unicorn/no-array-callback-reference': 'off', // We use this a lot.
'unicorn/no-array-reduce': 'off', // We use a lot of `reduce`.
'unicorn/no-lonely-if': 'off', // Sometimes the code is clearer with the lonely if.
'unicorn/no-null': 'off', // We use a lot of `null`.
'unicorn/no-useless-undefined': 'off', // We use a lot of `return undefined` to satisfy the `consistent-return` rule.
'unicorn/prefer-add-event-listener': 'off', // The autofixer can be unsafe.
Expand Down

0 comments on commit 9b2ef8c

Please sign in to comment.