no-new-buffer
UnreleasedConfiguration
rslint.config.ts
Enforce Buffer.from() and Buffer.alloc() instead of the deprecated new Buffer() constructor.
Examples
When the argument does not establish whether it is a size or source data, the rule reports a diagnostic with Buffer.from() and Buffer.alloc() suggestions.