Skip to content

Commit b9d70e8

Browse files
committed
Add arrow function eslint rules
1 parent b82fca2 commit b9d70e8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.eslintrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"guard-for-in": 2,
5050
"no-alert": 2,
5151
"no-caller": 2,
52+
"no-confusing-arrow": 2,
5253
"no-div-regex": 2,
5354
"no-else-return": 2,
5455
"no-eq-null": 2,
@@ -81,6 +82,7 @@
8182
"no-void": 0,
8283
"no-warning-comments": 2,
8384
"no-with": 2,
85+
"prefer-arrow-callback": 2,
8486
"radix": 2,
8587
"vars-on-top": 0,
8688
"wrap-iife": 2,
@@ -105,6 +107,9 @@
105107
"indent": [2, 2, {
106108
"SwitchCase": 1
107109
}],
110+
"arrow-body-style": [2, "as-needed"],
111+
"arrow-parens": [2, "as-needed"],
112+
"arrow-spacing": 2,
108113
"brace-style": 2,
109114
"camelcase": 0,
110115
"comma-spacing": 2,

0 commit comments

Comments
 (0)