Make valid-i18n-keys rule strict and fix most exceptions

This commit is contained in:
Jamie Kyle
2023-03-29 10:15:54 -07:00
committed by GitHub
parent 18a6da310f
commit 11cfcb4e32
36 changed files with 796 additions and 687 deletions

View File

@@ -604,19 +604,23 @@ export function Headers(): JSX.Element {
rows={[
{
type: RowType.Header,
i18nKey: 'conversationsHeader',
// eslint-disable-next-line @typescript-eslint/no-shadow
getHeaderText: i18n => i18n('conversationsHeader'),
},
{
type: RowType.Header,
i18nKey: 'messagesHeader',
// eslint-disable-next-line @typescript-eslint/no-shadow
getHeaderText: i18n => i18n('messagesHeader'),
},
{
type: RowType.Header,
i18nKey: 'findByUsernameHeader',
// eslint-disable-next-line @typescript-eslint/no-shadow
getHeaderText: i18n => i18n('findByUsernameHeader'),
},
{
type: RowType.Header,
i18nKey: 'findByPhoneNumberHeader',
// eslint-disable-next-line @typescript-eslint/no-shadow
getHeaderText: i18n => i18n('findByPhoneNumberHeader'),
},
]}
/>
@@ -629,7 +633,8 @@ export function FindByPhoneNumber(): JSX.Element {
rows={[
{
type: RowType.Header,
i18nKey: 'findByPhoneNumberHeader',
// eslint-disable-next-line @typescript-eslint/no-shadow
getHeaderText: i18n => i18n('findByPhoneNumberHeader'),
},
{
type: RowType.StartNewConversation,
@@ -673,7 +678,8 @@ export function FindByUsername(): JSX.Element {
rows={[
{
type: RowType.Header,
i18nKey: 'findByUsernameHeader',
// eslint-disable-next-line @typescript-eslint/no-shadow
getHeaderText: i18n => i18n('findByUsernameHeader'),
},
{
type: RowType.UsernameSearchResult,
@@ -745,7 +751,8 @@ export function KitchenSink(): JSX.Element {
},
{
type: RowType.Header,
i18nKey: 'contactsHeader',
// eslint-disable-next-line @typescript-eslint/no-shadow
getHeaderText: i18n => i18n('contactsHeader'),
},
{
type: RowType.Contact,
@@ -753,7 +760,8 @@ export function KitchenSink(): JSX.Element {
},
{
type: RowType.Header,
i18nKey: 'messagesHeader',
// eslint-disable-next-line @typescript-eslint/no-shadow
getHeaderText: i18n => i18n('messagesHeader'),
},
{
type: RowType.Conversation,
@@ -765,7 +773,8 @@ export function KitchenSink(): JSX.Element {
},
{
type: RowType.Header,
i18nKey: 'findByUsernameHeader',
// eslint-disable-next-line @typescript-eslint/no-shadow
getHeaderText: i18n => i18n('findByUsernameHeader'),
},
{
type: RowType.UsernameSearchResult,