sbdchd / eslint-plugin-cake

:cake: Sweet rules for ESLint
MIT License
1 stars 0 forks source link

new rule: no unnecessary boolean #29

Open chdsbd opened 3 years ago

chdsbd commented 3 years ago
declare const message: string

# bad
const enabled = !message || message === ''

# okay
const enabled = !message