I have found that natively TypeScript Linter does not provided with max-statements rule checking, instead of ESLint version - https://eslint.org/docs/rules/max-statements .
Maybe someone has know any polyfill or something else for max statements checking in TS?
Thanks for any advice.
您可以使用cyclomatic-complexity
TSLint规则 ,该规则还计算函数中语句的数量。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.