prefer-blob-reading-methods
UnreleasedConfiguration
rslint.config.ts
Rule Details
Prefer the promise-based Blob#arrayBuffer() and Blob#text() methods over
the corresponding callback-based FileReader methods.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
Calls that pass an encoding to FileReader#readAsText() are allowed because
Blob#text() always decodes as UTF-8. Other FileReader methods are also left
unchanged: