From ccea0635e4431dcc8bc68207db187c891158f837 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 02:11:16 +0400 Subject: feat(eslint): Rule "prefer-arrow-callback" Signed-off-by: Valentin Popov --- src/rules/default.json | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/rules/default.json') 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", { -- cgit v1.2.3