Skip to content

Commit 18fc9a9

Browse files
ci: apply automated fixes
1 parent 7223846 commit 18fc9a9

4 files changed

Lines changed: 20 additions & 12 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export * from './panel'
2-
export * from './plugin'
2+
export * from './plugin'
Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
import type { JSX } from "react"
2-
import type { DevtoolsPanelProps } from "./panel"
1+
import type { JSX } from 'react'
2+
import type { DevtoolsPanelProps } from './panel'
33

4-
export function createReactPlugin(name: string, Component: (props: DevtoolsPanelProps) => JSX.Element) {
4+
export function createReactPlugin(
5+
name: string,
6+
Component: (props: DevtoolsPanelProps) => JSX.Element,
7+
) {
58
function Plugin() {
69
return {
710
name: name,
8-
render: (_el: HTMLElement, theme: 'light' | 'dark') => <Component theme={theme} />,
11+
render: (_el: HTMLElement, theme: 'light' | 'dark') => (
12+
<Component theme={theme} />
13+
),
914
}
1015
}
1116
function NoOpPlugin() {
@@ -15,4 +20,4 @@ export function createReactPlugin(name: string, Component: (props: DevtoolsPanel
1520
}
1621
}
1722
return [Plugin, NoOpPlugin] as const
18-
}
23+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export * from './class'
22
export * from './panel'
3-
export * from "./plugin"
3+
export * from './plugin'
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
/** @jsxImportSource solid-js - we use Solid.js as JSX here */
22

3-
import type { JSX } from "solid-js";
4-
import type { DevtoolsPanelProps } from "./panel";
3+
import type { JSX } from 'solid-js'
4+
import type { DevtoolsPanelProps } from './panel'
55

6-
export function createSolidPlugin(name: string, Component: (props: DevtoolsPanelProps) => JSX.Element) {
6+
export function createSolidPlugin(
7+
name: string,
8+
Component: (props: DevtoolsPanelProps) => JSX.Element,
9+
) {
710
function Plugin() {
811
return {
912
name: name,
1013
render: (_el: HTMLElement, theme: 'light' | 'dark') => {
11-
return <Component theme={theme} />;
14+
return <Component theme={theme} />
1215
},
1316
}
1417
}
@@ -19,4 +22,4 @@ export function createSolidPlugin(name: string, Component: (props: DevtoolsPanel
1922
}
2023
}
2124
return [Plugin, NoOpPlugin] as const
22-
}
25+
}

0 commit comments

Comments
 (0)