From 16034f09ae6c7a78b8268b4c859928f18de7b9d6 Mon Sep 17 00:00:00 2001 From: QiChang Li Date: Mon, 27 Sep 2021 15:37:49 +0800 Subject: [PATCH] Docs: fix fixable example (#15107) The example should be: ```js module.exports = { meta: { fixable: "code" // or "whitespace" }, create(context) { // your rule } }; ``` instead of ```js module.exports = function(context) { meta: { fixable: "code" // or "whitespace" }, create(context) { // your rule } }; ``` --- docs/user-guide/migrating-to-8.0.0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user-guide/migrating-to-8.0.0.md b/docs/user-guide/migrating-to-8.0.0.md index d0d275de0c6..351309cc00f 100644 --- a/docs/user-guide/migrating-to-8.0.0.md +++ b/docs/user-guide/migrating-to-8.0.0.md @@ -142,7 +142,7 @@ module.exports = function(context) { Then rewrite your rule in this format: ```js -module.exports = function(context) { +module.exports = { meta: { fixable: "code" // or "whitespace" },