@@ -127,6 +127,19 @@ ruleTester.run("no-unlocalized-strings", noUnlocalizedStrings, {
127127 { code : 'const sep = "-"' , filename : "test.tsx" } ,
128128 { code : 'const x = "."' , filename : "test.tsx" } ,
129129
130+ // Numeric/symbolic strings (no letters at all)
131+ { code : 'const x = "1000"' , filename : "test.tsx" } ,
132+ { code : 'const x = "1.000"' , filename : "test.tsx" } ,
133+ { code : 'const x = "1,00"' , filename : "test.tsx" } ,
134+ { code : 'const x = "1,00€"' , filename : "test.tsx" } ,
135+ { code : 'const x = "€100"' , filename : "test.tsx" } ,
136+ { code : 'const x = "1,00 2,00 3,00"' , filename : "test.tsx" } ,
137+ { code : 'const x = "100%"' , filename : "test.tsx" } ,
138+ { code : 'const x = "$99.99"' , filename : "test.tsx" } ,
139+ { code : 'const x = "12:30"' , filename : "test.tsx" } ,
140+ { code : 'const x = "2024-01-15"' , filename : "test.tsx" } ,
141+ { code : 'const x = "→ ← ↑ ↓"' , filename : "test.tsx" } ,
142+
130143 // Empty strings
131144 { code : 'const x = ""' , filename : "test.tsx" } ,
132145 { code : 'const x = " "' , filename : "test.tsx" } ,
0 commit comments