Skip to content

Commit dfa969c

Browse files
committed
Ban atob and btoa
1 parent b31ab8a commit dfa969c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,14 @@ module.exports = {
226226
name: 'Buffer',
227227
message: 'Use Uint8Array instead. See: https://sindresorhus.com/blog/goodbye-nodejs-buffer',
228228
},
229+
{
230+
name: 'atob',
231+
message: 'This API is deprecated. Use https://github.com/sindresorhus/uint8array-extras instead.',
232+
},
233+
{
234+
name: 'btoa',
235+
message: 'This API is deprecated. Use https://github.com/sindresorhus/uint8array-extras instead.',
236+
},
229237
],
230238
'no-shadow-restricted-names': 'error',
231239
'no-undef-init': 'error',

0 commit comments

Comments
 (0)