chore: run lint

This commit is contained in:
Eric Liu 2024-11-30 10:39:34 -08:00
commit 765ffc88eb
3 changed files with 23 additions and 20 deletions

View file

@ -3235,10 +3235,7 @@
"ts": "interface DataTableCell<\n Row = DataTableRow,\n> {\n key:\n | DataTableKey<Row>\n | (string & {});\n value: DataTableValue;\n display?: (\n item: DataTableValue,\n row: DataTableRow,\n ) => DataTableValue;\n}\n" "ts": "interface DataTableCell<\n Row = DataTableRow,\n> {\n key:\n | DataTableKey<Row>\n | (string & {});\n value: DataTableValue;\n display?: (\n item: DataTableValue,\n row: DataTableRow,\n ) => DataTableValue;\n}\n"
} }
], ],
"generics": [ "generics": ["Row", "Row extends DataTableRow = DataTableRow"],
"Row",
"Row extends DataTableRow = DataTableRow"
],
"rest_props": { "rest_props": {
"type": "Element", "type": "Element",
"name": "div" "name": "div"

View file

@ -39,10 +39,10 @@
$: source = `https://github.com/carbon-design-system/carbon-components-svelte/tree/master/${component.filePath}`; $: source = `https://github.com/carbon-design-system/carbon-components-svelte/tree/master/${component.filePath}`;
$: forwarded_events = component.events.filter( $: forwarded_events = component.events.filter(
(event) => event.type === "forwarded" (event) => event.type === "forwarded",
); );
$: dispatched_events = component.events.filter( $: dispatched_events = component.events.filter(
(event) => event.type === "dispatched" (event) => event.type === "dispatched",
); );
</script> </script>
@ -145,10 +145,16 @@
</div> </div>
{/each} {/each}
{/if} {/if}
<div style:margin-top="var(--cds-layout-02)" style:margin-bottom="var(--cds-spacing-03)"> <div
style:margin-top="var(--cds-layout-02)"
style:margin-bottom="var(--cds-spacing-03)"
>
<strong>Default value</strong> <strong>Default value</strong>
</div> </div>
<div style:margin-bottom="var(--cds-layout-01)" style:max-width="85%"> <div
style:margin-bottom="var(--cds-layout-01)"
style:max-width="85%"
>
{#if prop.value === undefined} {#if prop.value === undefined}
<em>undefined</em> <em>undefined</em>
{:else} {:else}

View file

@ -9,7 +9,7 @@ const formatTypeScript = async (value) => {
parser: "typescript", parser: "typescript",
plugins: [plugin], plugins: [plugin],
printWidth: 40, // Force breaking onto new lines printWidth: 40, // Force breaking onto new lines
bracketSameLine: false bracketSameLine: false,
}); });
}; };