Bug: [no-restricted-imports] allowTypeImports not work with regex pattern #10692
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.7.2&fileType=.ts&code=PTAEAEBcGcFoEsDmA7A9gJwKYCh4FsAHDSUSATwM1AG9QBDUAX1ADN1U9QBycaAY1SVgdLgG4gA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQAIBcBPABxQGNoBLY-AWhXkoDt8B6Jge1uhXyrPyIAJrUoBbYh2j5UGANrhsORNGhTIAGkyKlOYgEN8g6E1lg5WXUpiIA5ogAe6KLmRkOpVgDoAVJp1WUPrw8BwA7gAqJIgAkhJSMs58sIgBSgC%2BALppYOkB2RB56UA&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA&tokens=false
Repro Code
See https://typescript-eslint.io/play/#ts=5.7.2&fileType=.ts&code=PTAEAEBcGcFoEsDmA7A9gJwKYCh4FsAHDSUSATwM1AG9QBDUAX1ADN1U9QBycaAY1SVgdLgG4gA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQAIBcBPABxQGNoBLY-AWhXkoDt8B6Jge1uhXyrPyIAJrUoBbYh2j5UGANrhsORNGhTIAGkyKlOYgEN8g6E1lg5WXUpiIA5ogAe6KLmRkOpVgDoAVJp1WUPrw8BwA7gAqJIgAkhJSMs58sIgBSgC%2BALppYOkB2RB56UA&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA&tokens=false
ESLint Config
tsconfig
Expected Result
Should not report error.
Actual Result
Report error:
Additional Info
No response
The text was updated successfully, but these errors were encountered: