From 9babfa66b509cbda1a5bc3dfe99c1c61bad1f97a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnaud=20Barr=C3=A9?= Date: Fri, 20 Dec 2019 13:46:05 +0100 Subject: [PATCH] Docs: Add example for expression option --- 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