sbdchd / eslint-plugin-cake

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

new rule: no extra negation #30

Closed chdsbd closed 2 years ago

chdsbd commented 2 years ago
declare const message: string

# bad
const enabled = !!!message

# okay
const enabled = !message
sbdchd commented 2 years ago

I think this is covered by: https://eslint.org/docs/rules/no-extra-boolean-cast