Skip to content

Commit f00c53d

Browse files
ci: apply automated fixes
1 parent d579c1b commit f00c53d

File tree

4 files changed

+41
-49
lines changed

4 files changed

+41
-49
lines changed

README.md

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ npm install @tanstack/devtools # no framework, just vanilla js
7272
## Usage
7373

7474
### React
75-
7675

7776
```tsx
7877
import { TanstackDevtools } from '@tanstack/react-devtools'
@@ -83,23 +82,22 @@ function App() {
8382
return (
8483
<div>
8584
<h1>My App</h1>
86-
<TanstackDevtools
87-
plugins={[
88-
{
89-
name: 'Tanstack Query',
90-
render: <ReactQueryDevtoolsPanel />,
91-
},
92-
{
93-
name: 'Tanstack Router',
94-
render: <TanStackRouterDevtoolsPanel router={router} />,
95-
},
96-
]}
97-
/>
85+
<TanstackDevtools
86+
plugins={[
87+
{
88+
name: 'Tanstack Query',
89+
render: <ReactQueryDevtoolsPanel />,
90+
},
91+
{
92+
name: 'Tanstack Router',
93+
render: <TanStackRouterDevtoolsPanel router={router} />,
94+
},
95+
]}
96+
/>
9897
</div>
9998
)
10099
}
101-
102-
```
100+
```
103101

104102
## Development
105103

packages/devtools/README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ This package is still under active development and might have breaking changes i
66

77
```tsx
88
import { TanStackDevtoolsCore } from '@tanstack/devtools'
9-
109

1110
const devtools = new TanStackDevtoolsCore({
1211
options: {
@@ -18,7 +17,6 @@ const devtools = new TanStackDevtoolsCore({
1817
})
1918

2019
devtools.mount(document.getElementById('your-devtools-container')!)
21-
2220
```
2321

2422
## Creating plugins
@@ -36,10 +34,8 @@ const devtools = new TanStackDevtoolsCore({
3634
{
3735
id: 'my-plugin',
3836
name: 'My Plugin',
39-
render: (el) => el.innerHTML = '<div>My Plugin Content</div>',
40-
}
41-
]
37+
render: (el) => (el.innerHTML = '<div>My Plugin Content</div>'),
38+
},
39+
],
4240
})
43-
4441
```
45-

packages/react-devtools/README.md

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Usage
1+
## Usage
22

33
```tsx
44
import { TanstackDevtools } from '@tanstack/react-devtools'
@@ -9,20 +9,19 @@ function App() {
99
return (
1010
<div>
1111
<h1>My App</h1>
12-
<TanstackDevtools
13-
plugins={[
14-
{
15-
name: 'Tanstack Query',
16-
render: <ReactQueryDevtoolsPanel />,
17-
},
18-
{
19-
name: 'Tanstack Router',
20-
render: <TanStackRouterDevtoolsPanel router={router} />,
21-
},
22-
]}
23-
/>
12+
<TanstackDevtools
13+
plugins={[
14+
{
15+
name: 'Tanstack Query',
16+
render: <ReactQueryDevtoolsPanel />,
17+
},
18+
{
19+
name: 'Tanstack Router',
20+
render: <TanStackRouterDevtoolsPanel router={router} />,
21+
},
22+
]}
23+
/>
2424
</div>
2525
)
2626
}
27-
28-
```
27+
```

packages/solid-devtools/README.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
1-
## Usage
1+
## Usage
22

33
```tsx
4-
import { TanstackDevtools } from '@tanstack/solid-devtools'
4+
import { TanstackDevtools } from '@tanstack/solid-devtools'
55
import { TanStackRouterDevtoolsPanel } from '@tanstack/solid-router-devtools'
66

77
function App() {
88
return (
99
<div>
1010
<h1>My App</h1>
11-
<TanstackDevtools
12-
plugins={[
13-
{
14-
name: 'Tanstack Router',
15-
render: <TanStackRouterDevtoolsPanel router={router} />,
16-
},
17-
]}
18-
/>
11+
<TanstackDevtools
12+
plugins={[
13+
{
14+
name: 'Tanstack Router',
15+
render: <TanStackRouterDevtoolsPanel router={router} />,
16+
},
17+
]}
18+
/>
1919
</div>
2020
)
2121
}
22-
23-
```
22+
```

0 commit comments

Comments
 (0)