eslint-plugin

@masknet/string/no-unneeded-to-string

Disallow String#toString() when simpler alternatives exist

Rule Details

:x: Incorrect

declare const input: string
input.toString()

:white_check_mark: Correct

declare const input: string
input

Attributes