Skip to content

Commit 28d6b34

Browse files
authored
chore: fix failing format linting (#9338)
1 parent 4b91104 commit 28d6b34

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

packages/svelte/src/compiler/compile/render_dom/invalidate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function invalidate(renderer, scope, node, names, main_execution_context
5050
if (
5151
node.type === 'AssignmentExpression' &&
5252
node.operator === '=' &&
53-
nodes_match(node.left, node.right, ['trailingComments','leadingComments']) &&
53+
nodes_match(node.left, node.right, ['trailingComments', 'leadingComments']) &&
5454
tail.length === 0
5555
) {
5656
return get_invalidated(head, node);

packages/svelte/src/compiler/utils/nodes_match.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export function nodes_match(a, b, ignoreKeys=[]) {
1+
export function nodes_match(a, b, ignoreKeys = []) {
22
if (!!a !== !!b) return false;
33
if (Array.isArray(a) !== Array.isArray(b)) return false;
44

@@ -8,8 +8,12 @@ export function nodes_match(a, b, ignoreKeys=[]) {
88
return a.every((child, i) => nodes_match(child, b[i]));
99
}
1010

11-
const a_keys = Object.keys(a).sort().filter(key => !ignoreKeys.includes(key));
12-
const b_keys = Object.keys(b).sort().filter(key => !ignoreKeys.includes(key));
11+
const a_keys = Object.keys(a)
12+
.sort()
13+
.filter((key) => !ignoreKeys.includes(key));
14+
const b_keys = Object.keys(b)
15+
.sort()
16+
.filter((key) => !ignoreKeys.includes(key));
1317

1418
if (a_keys.length !== b_keys.length) return false;
1519

sites/svelte.dev/src/app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en" class="theme-default typo-default">
33
<head>
44
<meta charset="utf-8" />

sites/svelte.dev/src/routes/(authed)/+layout.server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as session from '$lib/db/session';
22

33
/** @type {import('@sveltejs/adapter-vercel').Config} */
44
export const config = {
5-
runtime: 'nodejs18.x' // see https://github.com/sveltejs/svelte/pull/9136
5+
runtime: 'nodejs18.x' // see https://github.com/sveltejs/svelte/pull/9136
66
};
77

88
export async function load({ request }) {

0 commit comments

Comments
 (0)