Skip to content

Commit

Permalink
Lint: ban Buffer usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Borewit committed Jul 14, 2024
1 parent 258bb29 commit 7a494c5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
},
"Symbol": {
"message": "Avoid using the `Symbol` type. Did you mean `symbol`?"
},
"Buffer": {
"message": "Do not use Node.js specific Buffer type, use Uint8Array"
}
}
}
Expand Down Expand Up @@ -179,6 +182,12 @@
"no-redeclare": "error",
"no-return-await": "error",
"no-restricted-globals": ["error", "Buffer"],
"no-restricted-imports": [
"error",
{
"paths": ["node:buffer"]
}
],
"no-sequences": "error",
"no-shadow": "off",
"no-sparse-arrays": "error",
Expand Down

0 comments on commit 7a494c5

Please sign in to comment.