eslint-plugin

@masknet/string/no-locale-case

Disallow use String#toLocale{Upper,Lower}Case()

Rule Details

:x: Incorrect

example.toLocaleUpperCase()
example.toLocaleLowerCase()

:white_check_mark: Correct

example.toUpperCase()
example.toLowerCase()

When Not To Use It

When you’re doing i18n.

Attributes