chore: fix failing format linting (#9338)

pull/9352/head
Ben McCann 12 months ago committed by GitHub
parent 4b911045b0
commit 28d6b34598
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -50,7 +50,7 @@ export function invalidate(renderer, scope, node, names, main_execution_context
if (
node.type === 'AssignmentExpression' &&
node.operator === '=' &&
nodes_match(node.left, node.right, ['trailingComments','leadingComments']) &&
nodes_match(node.left, node.right, ['trailingComments', 'leadingComments']) &&
tail.length === 0
) {
return get_invalidated(head, node);

@ -1,4 +1,4 @@
export function nodes_match(a, b, ignoreKeys=[]) {
export function nodes_match(a, b, ignoreKeys = []) {
if (!!a !== !!b) return false;
if (Array.isArray(a) !== Array.isArray(b)) return false;
@ -8,8 +8,12 @@ export function nodes_match(a, b, ignoreKeys=[]) {
return a.every((child, i) => nodes_match(child, b[i]));
}
const a_keys = Object.keys(a).sort().filter(key => !ignoreKeys.includes(key));
const b_keys = Object.keys(b).sort().filter(key => !ignoreKeys.includes(key));
const a_keys = Object.keys(a)
.sort()
.filter((key) => !ignoreKeys.includes(key));
const b_keys = Object.keys(b)
.sort()
.filter((key) => !ignoreKeys.includes(key));
if (a_keys.length !== b_keys.length) return false;

@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en" class="theme-default typo-default">
<head>
<meta charset="utf-8" />

@ -2,7 +2,7 @@ import * as session from '$lib/db/session';
/** @type {import('@sveltejs/adapter-vercel').Config} */
export const config = {
runtime: 'nodejs18.x' // see https://github.com/sveltejs/svelte/pull/9136
runtime: 'nodejs18.x' // see https://github.com/sveltejs/svelte/pull/9136
};
export async function load({ request }) {

Loading…
Cancel
Save