From 30e17682a45ccfe06b6d3c9d8a900524cbad7b88 Mon Sep 17 00:00:00 2001 From: harlan Date: Sat, 6 Jul 2024 20:51:29 +1000 Subject: [PATCH] chore: lint --- src/plugins/transform.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/transform.ts b/src/plugins/transform.ts index 2dee7fb9..d91fab53 100644 --- a/src/plugins/transform.ts +++ b/src/plugins/transform.ts @@ -52,7 +52,7 @@ export function NuxtScriptBundleTransformer(options: AssetBundlerTransformerOpti if (!calleeName) return // check it starts with useScriptX where X must be a A-Z alphabetical letter - const isValidCallee = calleeName === 'useScript' || (calleeName?.startsWith('useScript') && /^[A-Z]$/.test(calleeName?.charAt(9)) && !calleeName.startsWith('useScriptTrigger') && !calleeName.startsWith('useScriptEvent')) + const isValidCallee = calleeName === 'useScript' || (calleeName?.startsWith('useScript') && /^[A-Z]$/.test(calleeName?.charAt(9)) && !calleeName.startsWith('useScriptTrigger') && !calleeName.startsWith('useScriptEvent')) if ( _node.type === 'CallExpression' && _node.callee.type === 'Identifier'