From 983325cb0ceaa99fbe6962dea3527cc6f168f951 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 15 Feb 2016 08:10:36 -0800 Subject: [PATCH] tools: replace obsolete ESLint rules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now that we are using ESLint 2, replace ESLint 1 rules with their ESLint 2 equivalents. PR-URL: https://github.com/nodejs/node/pull/5214 Reviewed-By: Michaël Zasso Reviewed-By: jbergstroem - Johan Bergström Reviewed-By: James M Snell Reviewed-By: Roman Reiss Reviewed-By: Myles Borins --- .eslintrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index a15348e702b1d2..35907ef96db347 100644 --- a/.eslintrc +++ b/.eslintrc @@ -36,6 +36,7 @@ rules: comma-spacing: 2 eol-last: 2 indent: [2, 2, {SwitchCase: 1}] + keyword-spacing: 2 max-len: [2, 80, 2] new-parens: 2 no-mixed-spaces-and-tabs: 2 @@ -54,8 +55,8 @@ rules: arrow-parens: [2, "always"] arrow-spacing: [2, {"before": true, "after": true}] constructor-super: 2 - no-arrow-condition: 2 no-class-assign: 2 + no-confusing-arrow: 2 no-const-assign: 2 no-dupe-class-members: 2 no-this-before-super: 2