Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
Before You File a Documentation Request Please Confirm You Have Done The Following...
- I have looked for existingopen or closed documentation requests that match my proposal.
- I haveread the FAQ and my problem is not listed.
Suggested Changes
Quoting the docs:
This rule reports on values used in a template literal string that aren't primitives and don't define a more useful .toString() method
But, as per#3538, it is by design that a definition of a more usefultoString is in fact ignored. The docs should ideally be updated to reflect this. Or perhaps just clarified? - clearly it's not just me that doesn't quite follow what the rules are.
Affected URL(s)
What's CRUD? The source code for the docs appears to be here, if that's any help:https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/restrict-template-expressions.md