From cc19659b06dd71af9cd48ae3c9ed7c0beaed1f21 Mon Sep 17 00:00:00 2001 From: Tiger Oakes Date: Wed, 20 Dec 2023 13:16:02 -0800 Subject: [PATCH] Bad paren --- lib/rules/forward-ref-uses-ref.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rules/forward-ref-uses-ref.js b/lib/rules/forward-ref-uses-ref.js index 4cc61acd21..26bc45264b 100644 --- a/lib/rules/forward-ref-uses-ref.js +++ b/lib/rules/forward-ref-uses-ref.js @@ -74,8 +74,8 @@ module.exports = { const shouldAddParentheses = node.type === 'ArrowFunctionExpression' && !isParenthesized(context, param); return [].concat( shouldAddParentheses ? fixer.insertTextBefore(param, '(') : [], - fixer.insertTextAfter(param, `, ref${shouldAddParentheses ? ')' : ''}`), - }; + fixer.insertTextAfter(param, `, ref${shouldAddParentheses ? ')' : ''}`) + ); }, } ),