From 5d8ca9f07db206556c6634746384c7778e12e8cb Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Sun, 8 Sep 2019 23:22:07 -0400 Subject: [PATCH] lint --- src/compiler/compile/Component.ts | 5 ++--- .../compile/render_dom/wrappers/InlineComponent/index.ts | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/compiler/compile/Component.ts b/src/compiler/compile/Component.ts index 6f381db115ce..fa8665ffde50 100644 --- a/src/compiler/compile/Component.ts +++ b/src/compiler/compile/Component.ts @@ -165,11 +165,10 @@ export default class Component { this.file = compile_options.filename && - // eslint-disable-next-line no-useless-escape (typeof process !== 'undefined' ? compile_options.filename - .replace(process.cwd(), '') - .replace(/^[\/\\]/, '') + .replace(process.cwd(), '') + .replace(/^[/\\]/, '') : compile_options.filename); this.locate = getLocator(this.source); diff --git a/src/compiler/compile/render_dom/wrappers/InlineComponent/index.ts b/src/compiler/compile/render_dom/wrappers/InlineComponent/index.ts index 75b9c353a7d5..0889ce7d036d 100644 --- a/src/compiler/compile/render_dom/wrappers/InlineComponent/index.ts +++ b/src/compiler/compile/render_dom/wrappers/InlineComponent/index.ts @@ -199,7 +199,7 @@ export default class InlineComponentWrapper extends Wrapper { const value = attr.expression.render(block); initial_props.push(value); - let value_object = value + let value_object = value; if (attr.expression.node.type !== 'ObjectExpression') { value_object = `@get_spread_object(${value})`; }