From da17d74c8ef953b579efc111f5044b0f07f511d7 Mon Sep 17 00:00:00 2001 From: "marcin.piniarski" Date: Fri, 26 Jul 2024 21:45:36 +0200 Subject: [PATCH] feature: catch errors and ignore them (#2465) --- lib/rules/define-props-declaration.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 + } } }) }