Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5e1d3b1

Browse files
feat: autofix in define-props-declaration: runtime syntax to type-based syntax (#2465)
fix tests failing on some environments
1 parent 17ac982 commit 5e1d3b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎lib/rules/define-props-declaration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ module.exports = {
231231

232232
yield fixer.insertTextBefore(
233233
variableDeclarationNode,
234-
`interface Props ${definePropsType.replaceAll(';', ',')}; `
234+
`interface Props ${definePropsType.replace(/;/g, ',')}; `
235235
)
236236
yield fixer.insertTextAfter(node.callee, `<Props>`)
237237
} else {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /