From fc2a25828f8e3b1e24d3f21d556f68005434f7d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Lins?= Date: Tue, 28 Apr 2020 17:38:27 -0300 Subject: [PATCH] fix lint --- src/compiler/compile/nodes/Element.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/compile/nodes/Element.ts b/src/compiler/compile/nodes/Element.ts index b09891cb82..c2f7c20c68 100644 --- a/src/compiler/compile/nodes/Element.ts +++ b/src/compiler/compile/nodes/Element.ts @@ -440,7 +440,7 @@ export default class Element extends Node { const id_attribute_valid = id_attribute && id_attribute.get_static_value() !== ''; const name_attribute_valid = name_attribute && name_attribute.get_static_value() !== ''; - if(!id_attribute_valid && !name_attribute_valid){ + if (!id_attribute_valid && !name_attribute_valid) { component.warn(this, { code: `a11y-missing-attribute`, message: `A11y: element should have an href attribute`