diff --git a/ROADMAP.md b/ROADMAP.md index c85d867..a997aaa 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -232,7 +232,7 @@ - [ ] "operator-linebreak" - [ ] "padded-blocks" - [ ] "padding-line-between-statements" -- [ ] "prefer-arrow-callback" +- [X] "prefer-arrow-callback" - [X] "prefer-const" - [ ] "prefer-destructuring" - [ ] "prefer-exponentiation-operator" 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", {