Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 845acb4

Browse filesBrowse 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
Copy full SHA for 845acb4

File tree

Expand file treeCollapse file tree

1 file changed

+7
-6
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-6
lines changed
Open diff view settings
Collapse file

‎.eslintrc‎

Copy file name to clipboardExpand all lines: .eslintrc
+7-6Lines changed: 7 additions & 6 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.