Bug: [no-var-requires, no-require-imports] support template literal strings for allow #8186
Closed
4 tasks done
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
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.3.3&fileType=.ts&code=MYewdgzgLgBAZiEMC8MBOBTAjgVwJaYAUABgHSkD0AJgIZQ2kBWE4xAlANxA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQAIBcBPABxQGNoBLY-AWhXkoDt8B6Jge1oDcBDaWtEQBHWJSGoMAbXDYciaNA7RIAGllysc7JF7x4HAO7owM7dsgAdSwDoAVsg5MAJJA3aAuu4gBfd198QHyA&tsconfig=&tokens=false
Repro Code
ESLint Config
tsconfig
Expected Result
This should be allowed.
Actual Result
Because the rule doesn't look at template literals inside call expressions, it still gets the complaint.
Additional Info
Note that the production site won't have the
allow
option in the playground until the next release. I'm filing this as a fast follow from #7710 (comment)The text was updated successfully, but these errors were encountered: