From b17e1573e1cff9ed8d201b9838e5a09d46d4370a Mon Sep 17 00:00:00 2001 From: Andy Kenward Date: Thu, 19 Dec 2024 15:49:37 +0000 Subject: [PATCH] docs: fix no-standalone-expect.md options example (#606) * docs: fix no-standalone-expect.md options example * Update no-standalone-expect.md --- docs/rules/no-standalone-expect.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/rules/no-standalone-expect.md b/docs/rules/no-standalone-expect.md index 4505c0a5..b6c3d17e 100644 --- a/docs/rules/no-standalone-expect.md +++ b/docs/rules/no-standalone-expect.md @@ -12,9 +12,12 @@ This rule aims to prevent the use of `expect` outside of `it` or `test` blocks. ```json { - "vitest/no-standalone-expect": { - "additionalTestBlockFunctions": ["test"] - } + "vitest/no-standalone-expect": [ + "error", + { + "additionalTestBlockFunctions": ["test"] + } + ] } ```