style-directives: linting

pull/5923/head
pmurray73 6 years ago committed by Tan Li Hau
parent 88f63a572e
commit 8b803ca022

@ -272,19 +272,19 @@ function read_tag_name(parser: Parser) {
function node_to_template_literal(value: TemplateNode[]): TemplateLiteral {
const literal: TemplateLiteral = {
type: "TemplateLiteral",
type: 'TemplateLiteral',
expressions: [],
quasis: []
};
value.forEach((node) => {
if (node.type === "Text") {
if (node.type === 'Text') {
literal.quasis.push({
type: 'TemplateElement',
value: { raw: node.raw, cooked: null },
tail: false
});
} else if (node.type === "MustacheTag") {
} else if (node.type === 'MustacheTag') {
literal.expressions.push(node.expression);
}
});
@ -427,7 +427,6 @@ function read_attribute(parser: Parser, unique_names: Set<string>) {
} as any;
}
return directive;
}

Loading…
Cancel
Save