diff --git a/src/compiler/compile/render_dom/index.ts b/src/compiler/compile/render_dom/index.ts index cc1e05f82b..3d966f8765 100644 --- a/src/compiler/compile/render_dom/index.ts +++ b/src/compiler/compile/render_dom/index.ts @@ -75,7 +75,6 @@ export default function dom( const props = component.vars.filter(variable => !variable.module && variable.export_name); const writable_props = props.filter(variable => variable.writable); - /* eslint-disable @typescript-eslint/indent,indent */ const set = (uses_props || writable_props.length > 0 || component.slots.size > 0) ? x` ${$$props} => { @@ -88,7 +87,6 @@ export default function dom( } ` : null; - /* eslint-enable @typescript-eslint/indent,indent */ const accessors = []; diff --git a/src/compiler/compile/render_dom/wrappers/Element/StyleAttribute.ts b/src/compiler/compile/render_dom/wrappers/Element/StyleAttribute.ts index 9dc36dabf5..06ead11a3c 100644 --- a/src/compiler/compile/render_dom/wrappers/Element/StyleAttribute.ts +++ b/src/compiler/compile/render_dom/wrappers/Element/StyleAttribute.ts @@ -87,14 +87,12 @@ function optimize_style(value: Array) { const remaining_data = chunk.data.slice(offset); if (remaining_data) { - /* eslint-disable @typescript-eslint/no-object-literal-type-assertion */ chunks[0] = { start: chunk.start + offset, end: chunk.end, type: 'Text', data: remaining_data } as Text; - /* eslint-enable @typescript-eslint/no-object-literal-type-assertion */ } else { chunks.shift(); } diff --git a/src/compiler/compile/render_dom/wrappers/IfBlock.ts b/src/compiler/compile/render_dom/wrappers/IfBlock.ts index d2d4c79486..dfc2228bc5 100644 --- a/src/compiler/compile/render_dom/wrappers/IfBlock.ts +++ b/src/compiler/compile/render_dom/wrappers/IfBlock.ts @@ -263,7 +263,6 @@ export default class IfBlockWrapper extends Wrapper { ? x`${current_block_type}(#ctx)` : x`${current_block_type} && ${current_block_type}(#ctx)`; - /* eslint-disable @typescript-eslint/indent,indent */ if (this.needs_update) { block.chunks.init.push(b` function ${select_block_type}(#ctx, #dirty) { @@ -287,7 +286,6 @@ export default class IfBlockWrapper extends Wrapper { } `); } - /* eslint-enable @typescript-eslint/indent,indent */ block.chunks.init.push(b` let ${current_block_type} = ${select_block_type}(#ctx, -1); @@ -375,7 +373,6 @@ export default class IfBlockWrapper extends Wrapper { block.add_variable(current_block_type_index); block.add_variable(name); - /* eslint-disable @typescript-eslint/indent,indent */ block.chunks.init.push(b` const ${if_block_creators} = [ ${this.branches.map(branch => branch.block.name)} @@ -407,7 +404,6 @@ export default class IfBlockWrapper extends Wrapper { } `} `); - /* eslint-enable @typescript-eslint/indent,indent */ if (has_else) { block.chunks.init.push(b` diff --git a/src/runtime/motion/spring.ts b/src/runtime/motion/spring.ts index 1804ff43a5..5845a13a57 100644 --- a/src/runtime/motion/spring.ts +++ b/src/runtime/motion/spring.ts @@ -79,7 +79,6 @@ export function spring(value?: T, opts: SpringOpts = {}): Spring { let inv_mass_recovery_rate = 0; let cancel_task = false; - /* eslint-disable @typescript-eslint/no-use-before-define */ function set(new_value: T, opts: SpringUpdateOpts={}): Promise { target_value = new_value; const token = current_token = {}; @@ -134,7 +133,6 @@ export function spring(value?: T, opts: SpringOpts = {}): Spring { }); }); } - /* eslint-enable @typescript-eslint/no-use-before-define */ const spring: Spring = { set,