upgrade eslint plugins, turn off new rules, convert errors to warnings

pull/4940/head
Antony Jones 5 years ago
parent 20b4d9138c
commit 589a9f4cd0

1177
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -65,16 +65,16 @@
"@rollup/plugin-virtual": "^2.0.0",
"@types/mocha": "^5.2.7",
"@types/node": "^8.10.53",
"@typescript-eslint/eslint-plugin": "^1.13.0",
"@typescript-eslint/parser": "^2.1.0",
"@typescript-eslint/eslint-plugin": "^3.0.2",
"@typescript-eslint/parser": "^3.0.2",
"acorn": "^7.1.0",
"agadoo": "^1.1.0",
"c8": "^5.0.1",
"code-red": "0.1.1",
"codecov": "^3.5.0",
"css-tree": "1.0.0-alpha22",
"eslint": "^6.3.0",
"eslint-plugin-import": "^2.18.2",
"eslint": "^7.1.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-svelte3": "^2.7.3",
"estree-walker": "^1.0.0",
"is-reference": "^1.1.4",

@ -413,7 +413,7 @@ export default class Block {
return ${block};`
: b`
return ${return_value};`
}
}
`;
return body;

@ -269,7 +269,7 @@ function get_event_handler(
mutation: (Node | Node[]);
contextual_dependencies: Set<string>;
lhs?: Node;
} {
} {
const value = get_value_from_dom(renderer, binding.parent, binding);
const contextual_dependencies = new Set(binding.node.expression.contextual_dependencies);

@ -536,7 +536,7 @@ export default class IfBlockWrapper extends Wrapper {
b`if (${block.renderer.dirty(branch.dependencies)}) {
@transition_in(${name}, 1);
}`
}
}
} else {
${name} = ${branch.block.name}(#ctx);
${name}.c();

@ -19,7 +19,6 @@ interface Fragment {
/* outro */ o: (local: any) => void;
/* destroy */ d: (detaching: 0|1) => void;
}
// eslint-disable-next-line @typescript-eslint/class-name-casing
interface T$$ {
dirty: number[];
ctx: null|any;

@ -184,7 +184,7 @@ export function derived<T>(stores: Stores, fn: Function, initial_value?: T): Rea
},
() => {
pending |= (1 << i);
}),
})
);
inited = true;

Loading…
Cancel
Save