From 2f79ba9ee5dd30d49daa44b636096d7a184c082c Mon Sep 17 00:00:00 2001 From: Sakthipriyan Vairamani Date: Mon, 1 Feb 2016 22:09:54 +0530 Subject: [PATCH 1/3] .eslintrc: enable es6's spread This came up in https://github.com/nodejs/node/pull/5020#discussion_r51395940. This patch basically enables spread option so that eslint will be happy. --- .eslintrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc b/.eslintrc index c02364e40f452a..60ce7880a1e3dd 100644 --- a/.eslintrc +++ b/.eslintrc @@ -12,6 +12,7 @@ ecmaFeatures: objectLiteralShorthandMethods: true objectLiteralShorthandProperties: true octalLiterals: true + spread: true templateStrings: true rules: From eea9d9f69a22e7d0c478fc430b837d3bf4143bea Mon Sep 17 00:00:00 2001 From: Sakthipriyan Vairamani Date: Mon, 1 Feb 2016 22:32:37 +0530 Subject: [PATCH 2/3] .eslintrc: enable all relevant es6 features --- .eslintrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.eslintrc b/.eslintrc index 60ce7880a1e3dd..4e67f2eb3abedb 100644 --- a/.eslintrc +++ b/.eslintrc @@ -7,13 +7,23 @@ ecmaFeatures: binaryLiterals: true blockBindings: true classes: true + defaultParams: true + destructuring: true forOf: true generators: true + modules: true + objectLiteralComputedProperties: true + objectLiteralDuplicateProperties: true objectLiteralShorthandMethods: true objectLiteralShorthandProperties: true octalLiterals: true + regexUFlag: true + regexYFlag: true + restParams: true spread: true + superInFunctions: true templateStrings: true + unicodeCodePointEscapes: true rules: # Possible Errors From b38f13ae8667f273b9e9de8b6ceea61763b2e41a Mon Sep 17 00:00:00 2001 From: Sakthipriyan Vairamani Date: Mon, 1 Feb 2016 22:38:40 +0530 Subject: [PATCH 3/3] .eslintrc: removing offending modules rule --- .eslintrc | 1 - 1 file changed, 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index 4e67f2eb3abedb..97e3eb111c30b2 100644 --- a/.eslintrc +++ b/.eslintrc @@ -11,7 +11,6 @@ ecmaFeatures: destructuring: true forOf: true generators: true - modules: true objectLiteralComputedProperties: true objectLiteralDuplicateProperties: true objectLiteralShorthandMethods: true