mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
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>
This commit is contained in:
parent
467eff2a53
commit
845acb4e1e
15
.eslintrc
15
.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
|
||||||
forOf: true
|
|
||||||
objectLiteralShorthandProperties: true
|
|
||||||
objectLiteralShorthandMethods: true
|
|
||||||
classes: true
|
classes: true
|
||||||
|
forOf: true
|
||||||
|
generators: true
|
||||||
|
objectLiteralShorthandMethods: true
|
||||||
|
objectLiteralShorthandProperties: true
|
||||||
|
octalLiterals: true
|
||||||
|
templateStrings: true
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
# Possible Errors
|
# Possible Errors
|
||||||
|
Loading…
Reference in New Issue
Block a user