eslint plugin for complexity-related rules
npm install eslint-plugin-complexity 
``bash`
npm i eslint-plugin-complexity -D
`json``
{
"rules": {
"complexity/comment": [ "warn", { "max": 10 } ]
}
}
MIT © fengzilong