There are many irregular variable declarations in some Boolean variable declarations.
For example
const showingModal = false
This value is obviously a Boolean value, but it cannot be seen from the variable.
A better variable name can improve code readability
Boolean variables should start with 'is', 'was', 'has', 'can', 'should', etc.
const showingModal = false
const greatThen = a > b
const completed = progress === 100
const setProperty = key in object
const stringType = typeof input === 'string'
// ...
const isShowingModal = false
const isGreatThen = a > b
const isCompleted = progress === 100
const hasSetProperty = key in object
const isStringType = typeof input === 'string'
better-boolean-var-declaration
This rule has been implemented in my company project, it can't autofix, but it can provide suggestions. I think it is useful
If this is acceptable, I'd be happy to PR
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too