src: enable v8 deprecation warnings and fix them
[platform/upstream/nodejs.git] / .eslintrc
index 9ff3f48..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;
@@ -65,6 +66,8 @@ rules:
   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