mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
9e30129fa7
Now that the Buffer.alloc, allocUnsafe, and from methods have landed, add a linting rule that requires their use within lib. Tests and benchmarks are explicitly excluded by the rule. PR-URL: https://github.com/nodejs/node/pull/5740 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
5 lines
90 B
Plaintext
5 lines
90 B
Plaintext
rules:
|
|
# Custom rules in tools/eslint-rules
|
|
require-buffer: 2
|
|
buffer-constructor: 2
|