diff --git a/src/compiler/compile/Component.ts b/src/compiler/compile/Component.ts
index 87ef087678..779e51f47c 100644
--- a/src/compiler/compile/Component.ts
+++ b/src/compiler/compile/Component.ts
@@ -138,7 +138,7 @@ export default class Component {
(typeof process !== 'undefined'
? compile_options.filename
.replace(process.cwd(), '')
- .replace(regex_leading_directory_separator, '')
+ .replace(regex_leading_directory_separator, '')
: compile_options.filename);
this.locate = getLocator(this.source, { offsetLine: 1 });
@@ -1091,7 +1091,7 @@ export default class Component {
this.replace(b`
${node.declarations.length ? node : null}
- ${ props.length > 0 && b`let { ${ props } } = $$props;`}
+ ${ props.length > 0 && b`let { ${props} } = $$props;`}
${inserts}
` as any);
return this.skip();
@@ -1475,7 +1475,7 @@ function process_component_options(component: Component, nodes) {
const node = nodes.find(node => node.name === 'svelte:options');
- function get_value(attribute, {code, message}) {
+ function get_value(attribute, { code, message }) {
const { value } = attribute;
const chunk = value[0];
diff --git a/src/compiler/compile/nodes/Element.ts b/src/compiler/compile/nodes/Element.ts
index e40f5eb744..7eabfefaad 100644
--- a/src/compiler/compile/nodes/Element.ts
+++ b/src/compiler/compile/nodes/Element.ts
@@ -203,6 +203,8 @@ function is_valid_aria_attribute_value(schema: ARIAPropertyDefinition, value: st
}
}
+const regex_any_repeated_whitespace = /[\s\n\t]+/g;
+
export default class Element extends Node {
type: 'Element';
name: string;
@@ -1002,8 +1004,6 @@ export default class Element extends Node {
}
}
-const regex_any_repeated_whitespace = /[\s\n\t]+/g;
-
const regex_starts_with_vovel = /^[aeiou]/;
function should_have_attribute(
diff --git a/src/compiler/compile/render_dom/index.ts b/src/compiler/compile/render_dom/index.ts
index 5152775ed8..faab39b74e 100644
--- a/src/compiler/compile/render_dom/index.ts
+++ b/src/compiler/compile/render_dom/index.ts
@@ -13,7 +13,7 @@ import { flatten } from '../../utils/flatten';
import check_enable_sourcemap from '../utils/check_enable_sourcemap';
import { push_array } from '../../utils/push_array';
-const regex_backslash = /\\/g;
+const regex_backslashes = /\\/g;
export default function dom(
component: Component,
@@ -532,7 +532,7 @@ export default function dom(
constructor(options) {
super();
- ${css.code && b`this.shadowRoot.innerHTML = \`\`;`}
+ ${css.code && b`this.shadowRoot.innerHTML = \`\`;`}
@init(this, { target: this.shadowRoot, props: ${init_props}, customElement: true }, ${definition}, ${has_create_fragment ? 'create_fragment' : 'null'}, ${not_equal}, ${prop_indexes}, null, ${dirty});
diff --git a/src/compiler/compile/render_dom/wrappers/Element/index.ts b/src/compiler/compile/render_dom/wrappers/Element/index.ts
index b81c48957f..4e90131521 100644
--- a/src/compiler/compile/render_dom/wrappers/Element/index.ts
+++ b/src/compiler/compile/render_dom/wrappers/Element/index.ts
@@ -322,19 +322,19 @@ export default class ElementWrapper extends Wrapper {
}
} else if (${previous_tag}) {
${
- has_transitions
- ? b`
+ has_transitions
+ ? b`
@group_outros();
@transition_out(${this.var}, 1, 1, () => {
${this.var} = null;
});
@check_outros();
`
- : b`
+ : b`
${this.var}.d(1);
${this.var} = null;
`
- }
+ }
}
${previous_tag} = ${tag};
`);
@@ -676,9 +676,9 @@ export default class ElementWrapper extends Wrapper {
function ${handler}(${params}) {
${binding_group.bindings.map(b => b.handler.mutation)}
${Array.from(dependencies)
- .filter(dep => dep[0] !== '$')
- .filter(dep => !contextual_dependencies.has(dep))
- .map(dep => b`${this.renderer.invalidate(dep)};`)}
+ .filter(dep => dep[0] !== '$')
+ .filter(dep => !contextual_dependencies.has(dep))
+ .map(dep => b`${this.renderer.invalidate(dep)};`)}
}
`);