From d26417f12364087107274405d454123bf87c0ad9 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 22 Feb 2016 14:24:38 -0800 Subject: [PATCH] tools: apply custom buffer lint rule to /lib only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: Roman Reiss --- .eslintrc | 1 - lib/.eslintrc | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 lib/.eslintrc diff --git a/.eslintrc b/.eslintrc index b9ebff875f1655..f2a61ab4134395 100644 --- a/.eslintrc +++ b/.eslintrc @@ -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"] diff --git a/lib/.eslintrc b/lib/.eslintrc new file mode 100644 index 00000000000000..341e9327c7cf3a --- /dev/null +++ b/lib/.eslintrc @@ -0,0 +1,3 @@ +rules: + # Custom rules in tools/eslint-rules + require-buffer: 2