eslint-plugin-strict-boolean
v1.0.2
Published
```bash npm i -D eslint eslint-plugin-strict-boolean ```
Readme
Installation
npm i -D eslint eslint-plugin-strict-booleanConfiguration
module.exports = {
plugins: ["strict-boolean"],
rules: {
"strict-boolean/index": "error",
},
};Rule Details
Examples of incorrect code for this rule:
const enabled = false
const login = true
const isNotHaveAccess = false
const canedit = trueExamples of correct code for this rule:
const isEnabled = false
const isLogin = true
const isHaveAccess = true
const canEdit = truePrefix with is, has, can, or should - ✅
Prefix with isNot - 🚫
Only camelCase for variable names
