src: enable v8 deprecation warnings and fix them
[platform/upstream/nodejs.git] / .eslintrc
index 7b2b151..0bf34c8 100644 (file)
--- a/.eslintrc
+++ b/.eslintrc
@@ -10,6 +10,8 @@ ecmaFeatures:
   generators: true
   forOf: true
   objectLiteralShorthandProperties: true
+  objectLiteralShorthandMethods: true
+  classes: true
 
 rules:
   # Possible Errors
@@ -43,8 +45,7 @@ rules:
   ## 2 space indentation
   indent: [2, 2]
   ## add space after comma
-  ## set to 'warn' because of https://github.com/eslint/eslint/issues/2408
-  comma-spacing: 1
+  comma-spacing: 2
   ## put semi-colon
   semi: 2
   ## require spaces operator like var sum = 1 + 1;
@@ -59,6 +60,14 @@ 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
+  # require space after keywords, eg 'for (..)'
+  space-after-keywords: 2
 
   # Strict Mode
   # list: https://github.com/eslint/eslint/tree/master/docs/rules#strict-mode