chore: lint code blocks in docs with ESLint (#42113)

This commit is contained in:
David Sanders
2025-05-29 12:45:26 -07:00
committed by GitHub
parent 4e61f5b26f
commit 0d70389ccb
51 changed files with 308 additions and 34 deletions

View File

@@ -9,6 +9,7 @@ module is emitted.
```js
const { BaseWindow, WebContentsView } = require('electron')
const win = new BaseWindow({ width: 800, height: 400 })
const view1 = new WebContentsView()
@@ -52,6 +53,7 @@ Use this to interact with the `WebContents`, for instance to load a URL.
```js
const { WebContentsView } = require('electron')
const view = new WebContentsView()
view.webContents.loadURL('https://electronjs.org/')
```