Commit Graph

5 Commits

Author SHA1 Message Date
Tom Ratcliffe c2ebb9cbbf
i18n: Update lint rule suggested import location to `@grafana/i18n` (#105091) 2025-05-19 15:00:15 +01:00
Tom Ratcliffe 754c0e1534
Internationalisation: Check if strings are entirely non-alphanumeric before reporting as issues (#103900) 2025-04-14 13:24:47 +00:00
Tom Ratcliffe d2b8994d80
Chore: Make sure we run prettier on cjs files (#103903) 2025-04-14 13:24:45 +01:00
Ashley Harrison c83c486c9b
Internationalisation: Lint rule improvement (#103788)
* improve autofix so it can fix foo={"bar"}

* apply fixes

* fix type checks + betterer

* tweak to make types happy
2025-04-10 16:22:52 +01:00
Tom Ratcliffe 85a3ae2d07
Chore: Add heuristic approach to fixing untranslated text with eslint rule (#101561)
* Add heuristic approach to fixing untranslated text with eslint rule

* Update logic of how we track and report untranslated strings so we can prevent autofixes

* Update betterer to reflect different reporting of untranslated text

* Move logic for rule to utils and change to suggest instead of fix

* Update tests to cope with suggest instead of fix

* Remove commented out `only`

* Add config to allow force fixing

* Fix type errors and improve shouldFix logic
2025-03-13 13:17:05 +00:00