Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
fixing affect noUndeclaredVariables suppression test
Browse files Browse the repository at this point in the history
  • Loading branch information
xunilrj committed Dec 7, 2022
1 parent dacce8b commit e881581
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,27 @@ export type Invalid<S extends number> = `
```
# Diagnostics
```
noUndeclaredVariables.ts:1:50 lint/correctness/noUndeclaredVariables FIXABLE ━━━━━━━━━━━━━━━━━━━━━
! The T variable is undeclared
> 1 │ export type Invalid<S extends number> = `Hello ${T}`
│ ^
2 │
3 │ export type Invalid<S extends number> = `
i Safe fix: Suppress rule lint/correctness/noUndeclaredVariables
1 │ - export·type·Invalid<S·extends·number>·=·`Hello·${T}`
1 │ + export·type·Invalid<S·extends·number>·=·`Hello·${//·rome-ignore·lint/correctness/noUndeclaredVariables:·<explanation>
2+ T}`
2 3 │
3 4 │ export type Invalid<S extends number> = `
```
```
noUndeclaredVariables.ts:5:7 lint/correctness/noUndeclaredVariables FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
Expand Down

0 comments on commit e881581

Please sign in to comment.