From 5e1d3b118123741a7b8ec83b8970c82b5d016c02 Mon Sep 17 00:00:00 2001 From: "marcin.piniarski" Date: Mon, 27 May 2024 17:58:19 +0200 Subject: [PATCH] feat: autofix in `define-props-declaration`: runtime syntax to type-based syntax (#2465) fix tests failing on some environments --- lib/rules/define-props-declaration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rules/define-props-declaration.js b/lib/rules/define-props-declaration.js index 17dfb8830..39494bd94 100644 --- a/lib/rules/define-props-declaration.js +++ b/lib/rules/define-props-declaration.js @@ -231,7 +231,7 @@ module.exports = { yield fixer.insertTextBefore( variableDeclarationNode, - `interface Props ${definePropsType.replaceAll(';', ',')}; ` + `interface Props ${definePropsType.replace(/;/g, ',')}; ` ) yield fixer.insertTextAfter(node.callee, ``) } else {