From e3c570eaf3d1d44fb57bf42f1870887856e4c5a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnaud=20Barr=C3=A9?= Date: Fri, 20 Dec 2019 21:02:04 +0100 Subject: [PATCH] Docs: Add example for expression option (#12694) --- docs/rules/func-style.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/rules/func-style.md b/docs/rules/func-style.md index 14f01b0c4a9..e17fecf8f82 100644 --- a/docs/rules/func-style.md +++ b/docs/rules/func-style.md @@ -77,6 +77,8 @@ Examples of **correct** code for this rule with the default `"expression"` optio var foo = function() { // ... }; + +var foo = () => {}; ``` ### declaration