From 7e4dce87591e2c5cebbf135d0d128c7ae13840fa Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Tue, 3 Sep 2019 21:38:34 -0400 Subject: [PATCH] lint --- src/compiler/compile/css/Stylesheet.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/compiler/compile/css/Stylesheet.ts b/src/compiler/compile/css/Stylesheet.ts index eb284d05a5..5ae1de14be 100644 --- a/src/compiler/compile/css/Stylesheet.ts +++ b/src/compiler/compile/css/Stylesheet.ts @@ -20,7 +20,7 @@ const at_rule_has_declaration = ({ block }: Node): true => function minify_declarations( code: MagicString, start: number, - declarations: Array + declarations: Declaration[] ): number { let c = start; @@ -89,7 +89,7 @@ class Rule { code.remove(c, this.node.block.start); c = this.node.block.start + 1; - c = minify_declarations(code, c, this.declarations) + c = minify_declarations(code, c, this.declarations); code.remove(c, this.node.block.end - 1); } @@ -157,7 +157,7 @@ class Declaration { class Atrule { node: Node; children: Array; - declarations: Array; + declarations: Declaration[]; constructor(node: Node) { this.node = node; @@ -207,7 +207,7 @@ class Atrule { code.remove(c, this.node.block.start); } else { let c = this.node.start + this.node.name.length + 1; - if(this.node.expression) { + if (this.node.expression) { if (this.node.expression.start - c > 1) code.overwrite(c, this.node.expression.start, ' '); c = this.node.expression.end; }