Skip to content

Commit

Permalink
feat: autofix in define-props-declaration: runtime syntax to type-b…
Browse files Browse the repository at this point in the history
…ased syntax (vuejs#2465)

fix tests failing on some environments
  • Loading branch information
mpiniarski committed May 27, 2024
1 parent 17ac982 commit 5e1d3b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/define-props-declaration.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ module.exports = {

yield fixer.insertTextBefore(
variableDeclarationNode,
`interface Props ${definePropsType.replaceAll(';', ',')}; `
`interface Props ${definePropsType.replace(/;/g, ',')}; `
)
yield fixer.insertTextAfter(node.callee, `<Props>`)
} else {
Expand Down

0 comments on commit 5e1d3b1

Please sign in to comment.