Rule proposal: ban calls that result into base toString() methods #258
Labels
enhancement: new plugin rule
New rule request for eslint-plugin
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Code that result into runtime strings like
'[object Object]'
,'[object Function]'
and others are usually wrong. if it's possible to trace the prototype chain and determine the call will result in call ofObject.prototype.toString
, we can warn against itI'm not sure if it's possible to do this with string interpolation:
Versions
@typescript-eslint/eslint-plugin
1.3.0
The text was updated successfully, but these errors were encountered: