delete more eslint disable comments

pull/4005/head
daszgfz 6 years ago
parent ed3ba73acf
commit 36006d8076

@ -75,7 +75,6 @@ export default function dom(
const props = component.vars.filter(variable => !variable.module && variable.export_name); const props = component.vars.filter(variable => !variable.module && variable.export_name);
const writable_props = props.filter(variable => variable.writable); 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) const set = (uses_props || writable_props.length > 0 || component.slots.size > 0)
? x` ? x`
${$$props} => { ${$$props} => {
@ -88,7 +87,6 @@ export default function dom(
} }
` `
: null; : null;
/* eslint-enable @typescript-eslint/indent,indent */
const accessors = []; const accessors = [];

@ -87,14 +87,12 @@ function optimize_style(value: Array<Text|Expression>) {
const remaining_data = chunk.data.slice(offset); const remaining_data = chunk.data.slice(offset);
if (remaining_data) { if (remaining_data) {
/* eslint-disable @typescript-eslint/no-object-literal-type-assertion */
chunks[0] = { chunks[0] = {
start: chunk.start + offset, start: chunk.start + offset,
end: chunk.end, end: chunk.end,
type: 'Text', type: 'Text',
data: remaining_data data: remaining_data
} as Text; } as Text;
/* eslint-enable @typescript-eslint/no-object-literal-type-assertion */
} else { } else {
chunks.shift(); chunks.shift();
} }

@ -263,7 +263,6 @@ export default class IfBlockWrapper extends Wrapper {
? x`${current_block_type}(#ctx)` ? x`${current_block_type}(#ctx)`
: x`${current_block_type} && ${current_block_type}(#ctx)`; : x`${current_block_type} && ${current_block_type}(#ctx)`;
/* eslint-disable @typescript-eslint/indent,indent */
if (this.needs_update) { if (this.needs_update) {
block.chunks.init.push(b` block.chunks.init.push(b`
function ${select_block_type}(#ctx, #dirty) { 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` block.chunks.init.push(b`
let ${current_block_type} = ${select_block_type}(#ctx, -1); 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(current_block_type_index);
block.add_variable(name); block.add_variable(name);
/* eslint-disable @typescript-eslint/indent,indent */
block.chunks.init.push(b` block.chunks.init.push(b`
const ${if_block_creators} = [ const ${if_block_creators} = [
${this.branches.map(branch => branch.block.name)} ${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) { if (has_else) {
block.chunks.init.push(b` block.chunks.init.push(b`

@ -79,7 +79,6 @@ export function spring<T=any>(value?: T, opts: SpringOpts = {}): Spring<T> {
let inv_mass_recovery_rate = 0; let inv_mass_recovery_rate = 0;
let cancel_task = false; let cancel_task = false;
/* eslint-disable @typescript-eslint/no-use-before-define */
function set(new_value: T, opts: SpringUpdateOpts={}): Promise<void> { function set(new_value: T, opts: SpringUpdateOpts={}): Promise<void> {
target_value = new_value; target_value = new_value;
const token = current_token = {}; const token = current_token = {};
@ -134,7 +133,6 @@ export function spring<T=any>(value?: T, opts: SpringOpts = {}): Spring<T> {
}); });
}); });
} }
/* eslint-enable @typescript-eslint/no-use-before-define */
const spring: Spring<T> = { const spring: Spring<T> = {
set, set,

Loading…
Cancel
Save