Skip to content

Commit

Permalink
Ban Buffer in favor of Uint8Array
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Oct 30, 2023
1 parent 7f8f92e commit 7d89a3d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ module.exports = {
'no-restricted-globals': [
'error',
'event',
{
name: 'Buffer',
message: 'Use Uint8Array instead. See: https://sindresorhus.com/blog/goodbye-nodejs-buffer',
},
],
'no-shadow-restricted-names': 'error',
'no-undef-init': 'error',
Expand Down Expand Up @@ -252,6 +256,14 @@ module.exports = {
'sys',
'querystring',
'colors',
{
name: 'buffer',
message: 'Use Uint8Array instead. See: https://sindresorhus.com/blog/goodbye-nodejs-buffer',
},
{
name: 'node:buffer',
message: 'Use Uint8Array instead. See: https://sindresorhus.com/blog/goodbye-nodejs-buffer',
},
],
'array-bracket-newline': [
'error',
Expand Down

0 comments on commit 7d89a3d

Please sign in to comment.