Skip to content

Commit

Permalink
tools: apply custom buffer lint rule to /lib only
Browse files Browse the repository at this point in the history
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: nodejs#3983 (comment)
PR-URL: nodejs#5371
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
  • Loading branch information
Trott committed Feb 25, 2016
1 parent 9534f6d commit d26417f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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"]


Expand Down
3 changes: 3 additions & 0 deletions lib/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
rules:
# Custom rules in tools/eslint-rules
require-buffer: 2

0 comments on commit d26417f

Please sign in to comment.