UNPKG

@masknet/eslint-plugin

Version:
40 lines (25 loc) 599 B
<!-- begin title --> # `@masknet/string/no-locale-case` Disallow use `String#toLocale{Upper,Lower}Case()` <!-- end title --> ## Rule Details ### :x: Incorrect ```ts example.toLocaleUpperCase(); example.toLocaleLowerCase(); ``` ### :white_check_mark: Correct ```ts example.toUpperCase(); example.toLowerCase(); ``` ## When Not To Use It When you're doing i18n. ## Attributes <!-- begin attributes --> - [x] :white_check_mark: Recommended - [x] :wrench: Fixable - [ ] :bulb: Suggestions - [ ] :gear: Configurable - [ ] :thought_balloon: Requires type information <!-- end attributes -->