From 3777f415625ce538de5edbb19f7330356da190a8 Mon Sep 17 00:00:00 2001 From: Roman Reiss Date: Sat, 13 Jun 2015 21:33:46 +0200 Subject: [PATCH] tools: enable whitespace related rules in eslint Enables rules for trailing whitespace, final newline and maximum consecutive empty lines. PR-URL: https://github.com/nodejs/io.js/pull/1971 Reviewed-By: Ben Noordhuis --- .eslintrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.eslintrc b/.eslintrc index 7b2b1512398d2b..9ff3f48aece491 100644 --- a/.eslintrc +++ b/.eslintrc @@ -59,6 +59,12 @@ rules: new-parens: 2 ## max 80 length max-len: [2, 80, 2] + ## max 2 consecutive empty lines + no-multiple-empty-lines: [2, {max: 2}] + ## require newline at end of files + eol-last: 2 + ## no trailing spaces + no-trailing-spaces: 2 # Strict Mode # list: https://github.com/eslint/eslint/tree/master/docs/rules#strict-mode