diff --git a/lib/rules/define-props-declaration.js b/lib/rules/define-props-declaration.js index 949b355c5..7f58b87cd 100644 --- a/lib/rules/define-props-declaration.js +++ b/lib/rules/define-props-declaration.js @@ -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 + } } }) }