summaryrefslogtreecommitdiff
path: root/src/rules/default.json
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 01:11:16 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 01:11:16 +0300
commitccea0635e4431dcc8bc68207db187c891158f837 (patch)
treedb46713e7a00b7cc1fa9cdf53440c6f194ce00ba /src/rules/default.json
parent1191beb965ca59ff897fc13cd1c99a44d7e316c3 (diff)
downloadeslint-config-ccea0635e4431dcc8bc68207db187c891158f837.tar.xz
eslint-config-ccea0635e4431dcc8bc68207db187c891158f837.zip
feat(eslint): Rule "prefer-arrow-callback"
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src/rules/default.json')
-rw-r--r--src/rules/default.json7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rules/default.json b/src/rules/default.json
index c4c5b47..a2f5c79 100644
--- a/src/rules/default.json
+++ b/src/rules/default.json
@@ -388,6 +388,13 @@
"error",
"never"
],
+ "prefer-arrow-callback": [
+ "error",
+ {
+ "allowNamedFunctions": false,
+ "allowUnboundThis": false
+ }
+ ],
"prefer-const": [
"error",
{