[ci] yarn format

This commit is contained in:
matthewp 2021-11-02 17:46:23 +00:00 committed by GitHub Actions
parent 94f35dbfbc
commit bd3bed7f27
3 changed files with 3 additions and 7 deletions

View file

@ -24,7 +24,7 @@ const customGenerator: astring.Generator = {
}; };
// Serializes props passed into a component so that they can be reused during hydration. // Serializes props passed into a component so that they can be reused during hydration.
// The value is any // The value is any
export function serializeProps(value: any) { export function serializeProps(value: any) {
return generate(valueToEstree(value), { return generate(valueToEstree(value), {
generator: customGenerator, generator: customGenerator,
@ -83,7 +83,6 @@ export function extractDirectives(inputProps: Record<string | number, any>): Ext
return extracted; return extracted;
} }
interface HydrateScriptOptions { interface HydrateScriptOptions {
renderer: any; renderer: any;
astroId: string; astroId: string;
@ -122,4 +121,4 @@ setup("${astroId}", {${metadata.hydrateArgs ? `value: ${JSON.stringify(metadata.
}; };
return hydrationScript; return hydrationScript;
} }

View file

@ -225,8 +225,6 @@ export function spreadAttributes(values: Record<any, any>) {
return output; return output;
} }
// Adds CSS variables to an inline style tag // Adds CSS variables to an inline style tag
export function defineStyleVars(selector: string, vars: Record<any, any>) { export function defineStyleVars(selector: string, vars: Record<any, any>) {
let output = '\n'; let output = '\n';

View file

@ -1,4 +1,3 @@
export function serializeListValue(value: any) { export function serializeListValue(value: any) {
const hash: Record<string, any> = {}; const hash: Record<string, any> = {};
@ -27,4 +26,4 @@ export function serializeListValue(value: any) {
} }
} }
} }
} }