Skip to content

Commit d6e20a8

Browse files
ci: apply automated fixes
1 parent 02b36db commit d6e20a8

15 files changed

Lines changed: 13 additions & 37 deletions

File tree

examples/preact/basic/src/index.tsx

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ type Post = {
1111
body: string
1212
}
1313

14-
function Posts({
15-
setPostId,
16-
}: {
17-
setPostId: (id: number) => void
18-
}) {
14+
function Posts({ setPostId }: { setPostId: (id: number) => void }) {
1915
const [posts, setPosts] = useState<Post[]>([])
2016
const [loading, setLoading] = useState(true)
2117
const [error, setError] = useState<Error | null>(null)
@@ -46,10 +42,7 @@ function Posts({
4642
<div>
4743
{posts.map((post) => (
4844
<p key={post.id}>
49-
<a
50-
onClick={() => setPostId(post.id)}
51-
href="#"
52-
>
45+
<a onClick={() => setPostId(post.id)} href="#">
5346
{post.title}
5447
</a>
5548
</p>
@@ -166,11 +159,10 @@ function App() {
166159
{win && render(<Mounted />, win.document.body)}
167160
<Feature />
168161
<p>
169-
As you visit the posts below, you will notice them in a loading
170-
state the first time you load them. However, after you return to
171-
this list and click on any posts you have already visited again, you
172-
will see them load instantly and background refresh right before
173-
your eyes!{' '}
162+
As you visit the posts below, you will notice them in a loading state
163+
the first time you load them. However, after you return to this list
164+
and click on any posts you have already visited again, you will see
165+
them load instantly and background refresh right before your eyes!{' '}
174166
<strong>
175167
(You may need to throttle your network speed to simulate longer
176168
loading sequences)

examples/preact/custom-devtools/vite.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ import preact from '@preact/preset-vite'
44
export default defineConfig({
55
plugins: [preact()],
66
})
7-
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
export * from './panel'
22
export * from './plugin'
3-

packages/devtools-utils/src/preact/panel.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,3 @@ export function createPreactPanel<
5757
}
5858
return [Panel, NoOpPanel] as const
5959
}
60-

packages/devtools-utils/src/preact/plugin.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,3 @@ export function createPreactPlugin({
2828
}
2929
return [Plugin, NoOpPlugin] as const
3030
}
31-

packages/devtools-utils/vite.config.preact.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,3 @@ export default mergeConfig(
2323
cjs: false,
2424
}),
2525
)
26-

packages/preact-devtools/CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@
55
### Patch Changes
66

77
- Initial release of Preact devtools adapter
8-

packages/preact-devtools/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,3 @@ function App() {
5555
)
5656
}
5757
```
58-

packages/preact-devtools/eslint.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@ export default [
1616
},
1717
},
1818
]
19-

packages/preact-devtools/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,3 @@
5959
"preact": ">=10.0.0"
6060
}
6161
}
62-

0 commit comments

Comments
 (0)