From b3418ed3a5f717158160fb565a8f6a3ad6fd64b1 Mon Sep 17 00:00:00 2001 From: Daniel Rentz Date: Fri, 20 Dec 2024 06:49:48 +0100 Subject: [PATCH] Docs: small typo in [prefer-replace-text] --- docs/rules/prefer-replace-text.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/rules/prefer-replace-text.md b/docs/rules/prefer-replace-text.md index 076665cf..881d544c 100644 --- a/docs/rules/prefer-replace-text.md +++ b/docs/rules/prefer-replace-text.md @@ -15,7 +15,7 @@ module.exports = { create(context) { context.report({ fix(fixer) { - // error, can be written: return fixer.replaceText([node, '']); + // error, can be written: return fixer.replaceText(node, ''); return fixer.replaceTextRange([node.range[0], node.range[1]], ''); }, });