Closed
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
Playground Link
Repro Code
const arg = ['foo', 'bar'] as const;
const msg1 = `arg = ${arg}`;
ESLint Config
module.exports = {
"rules": {
"@typescript-eslint/restrict-template-expressions": [
"error",
{
"allowArray": true
}
]
}
}
tsconfig
Expected Result
I expected no typescript-eslint error because I set allowArrays: true
as an option.
Actual Result
I get an error:
Invalid type "readonly ["foo", "bar"]" of template literal expression.ESLint @typescript-eslint/restrict-template-expressions
Additional Info
No response