Skip to content

Commit

Permalink
feature: catch errors and ignore them (vuejs#2465)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiniarski committed Jul 26, 2024
1 parent 1d58a2b commit da17d74
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/rules/define-props-declaration.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,11 @@ module.exports = {
node,
messageId: 'hasArg',
*fix(fixer) {
yield* fixTypeBased(fixer, node, props, context)
try {
yield* fixTypeBased(fixer, node, props, context)
} catch (error) {
// ignore
}
}
})
}
Expand Down

0 comments on commit da17d74

Please sign in to comment.