Glavin001/tslint-clean-code

Enforce prefixes for name of functions with boolean return type

Open

#66 创建于 2018年11月2日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)TypeScript (15 fork)github user discovery
good first issuehelp wantedrule

仓库指标

Star
 (175 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

See https://github.com/Glavin001/tslint-clean-code/pull/62#discussion_r227669295

I'd like to make a TSLint rule which sees a method's return type is boolean and checks the starting of the method name for is and other prefixes 🤣.

-    private textIsSingleWord(text: string): boolean {
+    private isTextSingleWord(text: string): boolean {

贡献者指南