Enable restrict-template-expressions linting rule (#7181)

* [AI] Promote typescript/restrict-template-expressions to error and fix violations

Convert the oxlint rule from "warn" to "error" and fix all 42 violations
by wrapping non-string template expressions with String(). This ensures
type safety in template literals across the codebase.

https://claude.ai/code/session_01Uk8SwFbD6HuUuo3SSMwU9z

* Add release notes for PR #7181

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Matiss Janis Aboltins
2026-03-13 18:36:58 +00:00
committed by GitHub
parent 85e3166495
commit 541df52441
34 changed files with 61 additions and 42 deletions

View File

@@ -106,7 +106,7 @@
"typescript/require-array-sort-compare": "error",
"typescript/unbound-method": "error",
"typescript/no-for-in-array": "warn", // TODO: covert to error
"typescript/restrict-template-expressions": "warn", // TODO: covert to error
"typescript/restrict-template-expressions": "error",
// Import rules
"import/consistent-type-specifier-style": "error",