Skip to content

Commit

Permalink
Ban atob and btoa
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jan 19, 2024
1 parent b31ab8a commit dfa969c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,14 @@ module.exports = {
name: 'Buffer',
message: 'Use Uint8Array instead. See: https://sindresorhus.com/blog/goodbye-nodejs-buffer',
},
{
name: 'atob',
message: 'This API is deprecated. Use https://github.com/sindresorhus/uint8array-extras instead.',
},
{
name: 'btoa',
message: 'This API is deprecated. Use https://github.com/sindresorhus/uint8array-extras instead.',
},
],
'no-shadow-restricted-names': 'error',
'no-undef-init': 'error',
Expand Down

0 comments on commit dfa969c

Please sign in to comment.