Bug: [prefer-includes] Autofix does not escape special characters #7145
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=4.9.3&jsx=true&sourceType=module&showAST=es&code=DYUwLgBAzhC8EHIEG4BQB6AOgO3QOjBCjAAooBKIA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQAIBcBPABxQGNoBLY-AWhXkoDt8B6Y6RAM0WlubLxYAExTooAdwCG0JpHBgAviEVA&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA
Repro Code
ESLint Config
tsconfig
{ "compilerOptions": { } }
Expected Result
Autofix doesn't result in invalid code
Actual Result
Autofix changes the code to this:
Additional Info
No response
The text was updated successfully, but these errors were encountered: