diff --git a/packages/eslint-plugin/src/rules/order-attributify.ts b/packages/eslint-plugin/src/rules/order-attributify.ts index 409e4da5c9..b70dd91dd6 100644 --- a/packages/eslint-plugin/src/rules/order-attributify.ts +++ b/packages/eslint-plugin/src/rules/order-attributify.ts @@ -31,7 +31,7 @@ export default ESLintUtils.RuleCreator(name => name)({ const templateBodyVisitor: RuleListener = { VStartTag(node: any) { - const valueless = node.attributes.filter((i: any) => !INGORE_ATTRIBUTES.includes(i.key?.name?.toLowerCase()) && i.value == null) + const valueless = node.attributes.filter((i: any) => typeof i.key?.name === 'string' && !INGORE_ATTRIBUTES.includes(i.key?.name?.toLowerCase()) && i.value == null) if (!valueless.length) return