Skip to content

Commit 845acb4

Browse files
committed
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>
1 parent 467eff2 commit 845acb4

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.eslintrc

+7-6
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ env:
33

44
# enable ECMAScript features
55
ecmaFeatures:
6-
blockBindings: true
7-
templateStrings: true
8-
octalLiterals: true
6+
arrowFunctions: true
97
binaryLiterals: true
10-
generators: true
8+
blockBindings: true
9+
classes: true
1110
forOf: true
12-
objectLiteralShorthandProperties: true
11+
generators: true
1312
objectLiteralShorthandMethods: true
14-
classes: true
13+
objectLiteralShorthandProperties: true
14+
octalLiterals: true
15+
templateStrings: true
1516

1617
rules:
1718
# Possible Errors

0 commit comments

Comments
 (0)