Browse Source

tools: enable arrow functions in .eslintrc

As of v8 4.5, arrow functions are rolled out. This patch allows eslint
to accept arrow functions as well.

PR-URL: #2840
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
v5.x
Sakthipriyan Vairamani 9 years ago
parent
commit
845acb4e1e
  1. 13
      .eslintrc

13
.eslintrc

@ -3,15 +3,16 @@ env:
# enable ECMAScript features # enable ECMAScript features
ecmaFeatures: ecmaFeatures:
blockBindings: true arrowFunctions: true
templateStrings: true
octalLiterals: true
binaryLiterals: true binaryLiterals: true
generators: true blockBindings: true
classes: true
forOf: true forOf: true
objectLiteralShorthandProperties: true generators: true
objectLiteralShorthandMethods: true objectLiteralShorthandMethods: true
classes: true objectLiteralShorthandProperties: true
octalLiterals: true
templateStrings: true
rules: rules:
# Possible Errors # Possible Errors

Loading…
Cancel
Save