mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
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>
This commit is contained in:
parent
fa5d28f246
commit
5ffd7430d1
|
|
@ -83,7 +83,6 @@ rules:
|
|||
strict: [2, "global"]
|
||||
|
||||
# Custom rules in tools/eslint-rules
|
||||
require-buffer: 2
|
||||
new-with-error: [2, "Error", "RangeError", "TypeError", "SyntaxError", "ReferenceError"]
|
||||
|
||||
|
||||
|
|
|
|||
3
lib/.eslintrc
Normal file
3
lib/.eslintrc
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
rules:
|
||||
# Custom rules in tools/eslint-rules
|
||||
require-buffer: 2
|
||||
Loading…
Reference in New Issue
Block a user