Skip to content

Commit d7fff2e

Browse files
committed
Ban Buffer in favor of Uint8Array
1 parent 5f45eda commit d7fff2e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,12 @@ module.exports = {
164164
message: 'Use `undefined` instead. See: https://github.com/sindresorhus/meta/issues/7',
165165
fixWith: 'undefined'
166166
},
167+
Buffer: {
168+
message: 'Use Uint8Array instead. See: https://sindresorhus.com/blog/goodbye-nodejs-buffer',
169+
suggest: [
170+
'Uint8Array'
171+
]
172+
},
167173
'[]': 'Don\'t use the empty array type `[]`. It only allows empty arrays. Use `SomeType[]` instead.',
168174
'[[]]': 'Don\'t use `[[]]`. It only allows an array with a single element which is an empty array. Use `SomeType[][]` instead.',
169175
'[[[]]]': 'Don\'t use `[[[]]]`. Use `SomeType[][][]` instead.',

0 commit comments

Comments
 (0)