avoid usage of to*Case + add project lint rule

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-10-02 14:01:50 +02:00
parent 9697e91074
commit ca0559444c
25 changed files with 101 additions and 33 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ export const indefiniteArticleOf = (
articles: [string, string],
word: string,
) => {
const firstChar = word.charAt(0).toLowerCase();
const firstChar = word.charAt(0).toLocaleLowerCase('en-US');
return firstChar in vowels
? `${articles[1]} ${word}`
: `${articles[0]} ${word}`;