Translation files: area files in place and the common texts for shared labels
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -47,6 +47,16 @@ export default tseslint.config(
|
||||
],
|
||||
plugins: { react },
|
||||
rules: {
|
||||
// Text in attributes that people read or hear (labels, alt text)
|
||||
'no-restricted-syntax': [
|
||||
'warn',
|
||||
{
|
||||
selector:
|
||||
"JSXAttribute[name.name=/^(aria-label|aria-description|alt|title|placeholder|label)$/][value.type='Literal']",
|
||||
message:
|
||||
'Put the text in a language file (src/i18n) and use t().',
|
||||
},
|
||||
],
|
||||
'react/jsx-no-literals': [
|
||||
'warn',
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user