Bug: [restrict-template-expressions] allowArrays errors on "as const" arrays. #9491
Closed
4 tasks done
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
locked due to age
Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Before You File a Bug Report Please Confirm You Have Done The Following...
Playground Link
https://typescript-eslint.io/play/#ts=5.5.2&fileType=.ts&code=MYewdgzgLgBAhgJwOYwLwwNoHIBmIRYA0MWARolgLrwQyiRQDcAUPdDALYRICMaMAA0Qp0AEgDewgL4DGQA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQAIBcBPABxQGNoBLY-AWhXkoDt8B6aFfKsu-RAW2LwAhn3oAPYh2TJKAeyaoMAbXDYciaNDnRIAGjXqs67JGHx4cgO4BBLcMLowXWIkPYAvu4C6arx6A&tsconfig=&tokens=false
Repro Code
ESLint Config
tsconfig
Expected Result
I expected no typescript-eslint error because I set
allowArrays: true
as an option.Actual Result
I get an error:
Additional Info
No response
The text was updated successfully, but these errors were encountered: