Skip to content

Commit

Permalink
chore: update lint
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Feb 15, 2024
1 parent 178a989 commit 5bb36b8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 12 deletions.
3 changes: 1 addition & 2 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import type { DefaultTheme } from 'vitepress'
import { defineConfig } from 'vitepress'
import { transformerTwoslash } from '@shikijs/vitepress-twoslash'
import vite from '../vite.config'

const CURRENT_VERSION = '0.47.1'
const CURRENT_VERSION = '0.48.0-beta.2'

const Guide: DefaultTheme.NavItemWithLink[] = [
{
Expand Down
4 changes: 2 additions & 2 deletions .vitepress/theme/components/TheTweet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const vm = getCurrentInstance()!
const loaded = ref(false)
async function create() {
// @ts-expect-error
// @ts-expect-error Global variable
await window.twttr.widgets.createTweet(
props.id.toString(),
tweet.value,
Expand All @@ -36,7 +36,7 @@ async function create() {
}
if (isClient) {
// @ts-expect-error
// @ts-expect-error Global variable
if (window?.twttr?.widgets) {
onMounted(create)
}
Expand Down
1 change: 0 additions & 1 deletion builtin/layouts.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ backgroundSize: 20em 70%
---
```


### `iframe-left`

Shows a web page on the left side of the screen, the content will be placed on the right side.
Expand Down
12 changes: 6 additions & 6 deletions guide/hosting.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,15 @@ We recommend to use `npm init slidev@latest` to scaffold your project, which con

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

```ts
[build.environment]
NODE_VERSION = '14'

[build]
```toml
[build]
publish = 'dist'
command = 'npm run build'

[[redirects]]
[build.environment]
NODE_VERSION = '20'

[[redirects]]
from = '/*'
to = '/index.html'
status = 200
Expand Down
1 change: 0 additions & 1 deletion guide/syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ function add(
Learn more in the [clicks animations guide](./animations#positioning).
:::


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

~~~md
Expand Down

0 comments on commit 5bb36b8

Please sign in to comment.