--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: noUndeclaredVariables.ts --- # Input ```ts export type Invalid = `Hello ${T}` export type Invalid = ` Hello ${T} ` ``` # Diagnostics ``` noUndeclaredVariables.ts:1:50 lint/correctness/noUndeclaredVariables FIXABLE ━━━━━━━━━━━━━━━━━━━━━ ! The T variable is undeclared > 1 │ export type Invalid = `Hello ${T}` │ ^ 2 │ 3 │ export type Invalid = ` i Safe fix: Suppress rule lint/correctness/noUndeclaredVariables 1 │ - export·type·Invalid·=·`Hello·${T}` 1 │ + export·type·Invalid·=·`Hello·${//·biome-ignore·lint/correctness/noUndeclaredVariables:· 2 │ + T}` 2 3 │ 3 4 │ export type Invalid = ` ``` ``` noUndeclaredVariables.ts:5:7 lint/correctness/noUndeclaredVariables FIXABLE ━━━━━━━━━━━━━━━━━━━━━━ ! The T variable is undeclared 3 │ export type Invalid = ` 4 │ Hello > 5 │ ${T} │ ^ 6 │ ` i Safe fix: Suppress rule lint/correctness/noUndeclaredVariables 3 3 │ export type Invalid = ` 4 4 │ Hello 5 │ - ····${T} 5 │ + ····${//·biome-ignore·lint/correctness/noUndeclaredVariables:· 6 │ + T} 6 7 │ ` ```