Glavin001/tslint-clean-code

Enforce prefixes for name of functions with boolean return type

Open

#66 geöffnet am 2. Nov. 2018

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (15 Forks)github user discovery
good first issuehelp wantedrule

Repository-Metriken

Stars
 (175 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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 {

Contributor Guide