Skip to content

Commit 5bb36b8

Browse files
committed
chore: update lint
1 parent 178a989 commit 5bb36b8

File tree

5 files changed

+9
-12
lines changed

5 files changed

+9
-12
lines changed

.vitepress/config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import type { DefaultTheme } from 'vitepress'
22
import { defineConfig } from 'vitepress'
33
import { transformerTwoslash } from '@shikijs/vitepress-twoslash'
4-
import vite from '../vite.config'
54

6-
const CURRENT_VERSION = '0.47.1'
5+
const CURRENT_VERSION = '0.48.0-beta.2'
76

87
const Guide: DefaultTheme.NavItemWithLink[] = [
98
{

.vitepress/theme/components/TheTweet.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const vm = getCurrentInstance()!
2323
const loaded = ref(false)
2424
2525
async function create() {
26-
// @ts-expect-error
26+
// @ts-expect-error Global variable
2727
await window.twttr.widgets.createTweet(
2828
props.id.toString(),
2929
tweet.value,
@@ -36,7 +36,7 @@ async function create() {
3636
}
3737
3838
if (isClient) {
39-
// @ts-expect-error
39+
// @ts-expect-error Global variable
4040
if (window?.twttr?.widgets) {
4141
onMounted(create)
4242
}

builtin/layouts.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ backgroundSize: 20em 70%
9797
---
9898
```
9999

100-
101100
### `iframe-left`
102101

103102
Shows a web page on the left side of the screen, the content will be placed on the right side.

guide/hosting.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,15 @@ We recommend to use `npm init slidev@latest` to scaffold your project, which con
106106

107107
Create `netlify.toml` in your project root with the following content.
108108

109-
```ts
110-
[build.environment]
111-
NODE_VERSION = '14'
112-
113-
[build]
109+
```toml
110+
[build]
114111
publish = 'dist'
115112
command = 'npm run build'
116113

117-
[[redirects]]
114+
[build.environment]
115+
NODE_VERSION = '20'
116+
117+
[[redirects]]
118118
from = '/*'
119119
to = '/index.html'
120120
status = 200

guide/syntax.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ function add(
165165
Learn more in the [clicks animations guide](./animations#positioning).
166166
:::
167167

168-
169168
If the code doesn't fit into one slide, you use the `maxHeight` to set fixed height and enable scrolling:
170169

171170
~~~md

0 commit comments

Comments
 (0)