Skip to content

Commit da17d74

Browse files
committed
feature: catch errors and ignore them (vuejs#2465)
1 parent 1d58a2b commit da17d74

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: lib/rules/define-props-declaration.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,11 @@ module.exports = {
270270
node,
271271
messageId: 'hasArg',
272272
*fix(fixer) {
273-
yield* fixTypeBased(fixer, node, props, context)
273+
try {
274+
yield* fixTypeBased(fixer, node, props, context)
275+
} catch (error) {
276+
// ignore
277+
}
274278
}
275279
})
276280
}

0 commit comments

Comments
 (0)