This website requires JavaScript.
Explore
Help
Sign In
mirrors
/
nodejs
Watch
0
Star
0
Fork
0
You've already forked nodejs
mirror of
https://github.com/nodejs/node.git
synced
2024-12-01 16:10:02 +01:00
Code
Issues
Releases
Activity
00b2219420
nodejs
/
lib
/
.eslintrc
5 lines
90 B
Plaintext
Raw
Normal View
History
Unescape
Escape
tools: apply custom buffer lint rule to /lib only The lint rule is there to avoid a circular-dependency issue that only applies to `/lib`. In preparation for linting `/benchmark`, apply that rule to `/lib` only to avoid churn in `/benchmark`. Refs: https://github.com/nodejs/node/issues/3983#issuecomment-158956113 PR-URL: https://github.com/nodejs/node/pull/5371 Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
2016-02-22 23:24:38 +01:00
rules:
# Custom rules in tools/eslint-rules
require-buffer: 2
tools: add buffer-constructor eslint rule 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>
2016-03-16 18:37:35 +01:00
buffer-constructor: 2
Copy Permalink