Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
chore: fix ESLint violation and lessen rule strictness (#6081)
- Loading branch information
1 parent
fdc6fda
commit 70a900e
Showing
37 changed files
with
285 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,78 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [puppeteer](./puppeteer.md) | ||
|
||
## puppeteer package | ||
|
||
## Classes | ||
|
||
| Class | Description | | ||
| --- | --- | | ||
| [Accessibility](./puppeteer.accessibility.md) | The Accessibility class provides methods for inspecting Chromium's accessibility tree. The accessibility tree is used by assistive technology such as [screen readers](https://en.wikipedia.org/wiki/Screen_reader) or [switches](https://en.wikipedia.org/wiki/Switch_access)<!-- -->. | | ||
| [Browser](./puppeteer.browser.md) | A Browser is created when Puppeteer connects to a Chromium instance, either through [Puppeteer.launch()](./puppeteer.puppeteer.launch.md) or [Puppeteer.connect()](./puppeteer.puppeteer.connect.md)<!-- -->. | | ||
| [BrowserContext](./puppeteer.browsercontext.md) | BrowserContexts provide a way to operate multiple independent browser sessions. When a browser is launched, it has a single BrowserContext used by default. The method [Browser.newPage](./puppeteer.browser.newpage.md) creates a page in the default browser context. | | ||
| [BrowserFetcher](./puppeteer.browserfetcher.md) | | | ||
| [CDPSession](./puppeteer.cdpsession.md) | The <code>CDPSession</code> instances are used to talk raw Chrome Devtools Protocol. | | ||
| [Connection](./puppeteer.connection.md) | | | ||
| [ConsoleMessage](./puppeteer.consolemessage.md) | ConsoleMessage objects are dispatched by page via the 'console' event. | | ||
| [Coverage](./puppeteer.coverage.md) | | | ||
| [Dialog](./puppeteer.dialog.md) | Dialog instances are dispatched by the [Page](./puppeteer.page.md) via the <code>dialog</code> event. | | ||
| [ElementHandle](./puppeteer.elementhandle.md) | ElementHandle represents an in-page DOM element. | | ||
| [EventEmitter](./puppeteer.eventemitter.md) | The EventEmitter class that many Puppeteer classes extend. | | ||
| [ExecutionContext](./puppeteer.executioncontext.md) | | | ||
| [FileChooser](./puppeteer.filechooser.md) | | | ||
| [Frame](./puppeteer.frame.md) | | | ||
| [FrameManager](./puppeteer.framemanager.md) | | | ||
| [HTTPRequest](./puppeteer.httprequest.md) | | | ||
| [HTTPResponse](./puppeteer.httpresponse.md) | | | ||
| [JSHandle](./puppeteer.jshandle.md) | | | ||
| [Keyboard](./puppeteer.keyboard.md) | | | ||
| [Mouse](./puppeteer.mouse.md) | | | ||
| [Page](./puppeteer.page.md) | Page provides methods to interact with a single tab or \[extension background page\](https://developer.chrome.com/extensions/background\_pages) in Chromium. One \[Browser\] instance might have multiple \[Page\] instances. | | ||
| [Puppeteer](./puppeteer.puppeteer.md) | The main Puppeteer class | | ||
| [SecurityDetails](./puppeteer.securitydetails.md) | The SecurityDetails class represents the security details of a response that was received over a secure connection. | | ||
| [Target](./puppeteer.target.md) | | | ||
| [TimeoutError](./puppeteer.timeouterror.md) | TimeoutError is emitted whenever certain operations are terminated due to timeout. | | ||
| [Touchscreen](./puppeteer.touchscreen.md) | | | ||
| [Tracing](./puppeteer.tracing.md) | | | ||
| [WebWorker](./puppeteer.webworker.md) | The WebWorker class represents a [WebWorker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API)<!-- -->. | | ||
|
||
## Enumerations | ||
|
||
| Enumeration | Description | | ||
| --- | --- | | ||
| [PageEmittedEvents](./puppeteer.pageemittedevents.md) | All the events that a page instance may emit. | | ||
|
||
## Interfaces | ||
|
||
| Interface | Description | | ||
| --- | --- | | ||
| [BoundingBox](./puppeteer.boundingbox.md) | | | ||
| [BoxModel](./puppeteer.boxmodel.md) | | | ||
| [BrowserFetcherOptions](./puppeteer.browserfetcheroptions.md) | | | ||
| [ClickOptions](./puppeteer.clickoptions.md) | | | ||
| [ConsoleMessageLocation](./puppeteer.consolemessagelocation.md) | | | ||
| [KeyDefinition](./puppeteer.keydefinition.md) | Copyright 2017 Google Inc. All rights reserved.<!-- -->Licensed under the Apache License, Version 2.0 (the 'License'); you may not use this file except in compliance with the License. You may obtain a copy of the License at<!-- -->http://www.apache.org/licenses/LICENSE-2.0<!-- -->Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. | | ||
| [PressOptions](./puppeteer.pressoptions.md) | | | ||
| [SerializedAXNode](./puppeteer.serializedaxnode.md) | Represents a Node and the properties of it that are relevant to Accessibility. | | ||
| [SnapshotOptions](./puppeteer.snapshotoptions.md) | | | ||
| [WaitForTargetOptions](./puppeteer.waitfortargetoptions.md) | | | ||
|
||
## Variables | ||
|
||
| Variable | Description | | ||
| --- | --- | | ||
| [EVALUATION\_SCRIPT\_URL](./puppeteer.evaluation_script_url.md) | | | ||
| [keyDefinitions](./puppeteer.keydefinitions.md) | | | ||
| [puppeteerErrors](./puppeteer.puppeteererrors.md) | | | ||
|
||
## Type Aliases | ||
|
||
| Type Alias | Description | | ||
| --- | --- | | ||
| [ConsoleMessageType](./puppeteer.consolemessagetype.md) | The supported types for console messages. | | ||
| [KeyInput](./puppeteer.keyinput.md) | | | ||
| [MouseButtonInput](./puppeteer.mousebuttoninput.md) | | | ||
| [PuppeteerErrors](./puppeteer.puppeteererrors.md) | | | ||
|
||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [puppeteer](./puppeteer.md) | ||
|
||
## puppeteer package | ||
|
||
## Classes | ||
|
||
| Class | Description | | ||
| --- | --- | | ||
| [Accessibility](./puppeteer.accessibility.md) | The Accessibility class provides methods for inspecting Chromium's accessibility tree. The accessibility tree is used by assistive technology such as [screen readers](https://en.wikipedia.org/wiki/Screen_reader) or [switches](https://en.wikipedia.org/wiki/Switch_access)<!-- -->. | | ||
| [Browser](./puppeteer.browser.md) | A Browser is created when Puppeteer connects to a Chromium instance, either through [Puppeteer.launch()](./puppeteer.puppeteer.launch.md) or [Puppeteer.connect()](./puppeteer.puppeteer.connect.md)<!-- -->. | | ||
| [BrowserContext](./puppeteer.browsercontext.md) | BrowserContexts provide a way to operate multiple independent browser sessions. When a browser is launched, it has a single BrowserContext used by default. The method [Browser.newPage](./puppeteer.browser.newpage.md) creates a page in the default browser context. | | ||
| [BrowserFetcher](./puppeteer.browserfetcher.md) | | | ||
| [CDPSession](./puppeteer.cdpsession.md) | The <code>CDPSession</code> instances are used to talk raw Chrome Devtools Protocol. | | ||
| [Connection](./puppeteer.connection.md) | | | ||
| [ConsoleMessage](./puppeteer.consolemessage.md) | ConsoleMessage objects are dispatched by page via the 'console' event. | | ||
| [Coverage](./puppeteer.coverage.md) | | | ||
| [Dialog](./puppeteer.dialog.md) | Dialog instances are dispatched by the [Page](./puppeteer.page.md) via the <code>dialog</code> event. | | ||
| [ElementHandle](./puppeteer.elementhandle.md) | ElementHandle represents an in-page DOM element. | | ||
| [EventEmitter](./puppeteer.eventemitter.md) | The EventEmitter class that many Puppeteer classes extend. | | ||
| [ExecutionContext](./puppeteer.executioncontext.md) | | | ||
| [FileChooser](./puppeteer.filechooser.md) | | | ||
| [Frame](./puppeteer.frame.md) | | | ||
| [FrameManager](./puppeteer.framemanager.md) | | | ||
| [HTTPRequest](./puppeteer.httprequest.md) | | | ||
| [HTTPResponse](./puppeteer.httpresponse.md) | | | ||
| [JSHandle](./puppeteer.jshandle.md) | | | ||
| [Keyboard](./puppeteer.keyboard.md) | | | ||
| [Mouse](./puppeteer.mouse.md) | | | ||
| [Page](./puppeteer.page.md) | Page provides methods to interact with a single tab or \[extension background page\](https://developer.chrome.com/extensions/background\_pages) in Chromium. One \[Browser\] instance might have multiple \[Page\] instances. | | ||
| [Puppeteer](./puppeteer.puppeteer.md) | The main Puppeteer class | | ||
| [SecurityDetails](./puppeteer.securitydetails.md) | The SecurityDetails class represents the security details of a response that was received over a secure connection. | | ||
| [Target](./puppeteer.target.md) | | | ||
| [TimeoutError](./puppeteer.timeouterror.md) | TimeoutError is emitted whenever certain operations are terminated due to timeout. | | ||
| [Touchscreen](./puppeteer.touchscreen.md) | | | ||
| [Tracing](./puppeteer.tracing.md) | | | ||
| [WebWorker](./puppeteer.webworker.md) | The WebWorker class represents a [WebWorker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API)<!-- -->. | | ||
|
||
## Enumerations | ||
|
||
| Enumeration | Description | | ||
| --- | --- | | ||
| [PageEmittedEvents](./puppeteer.pageemittedevents.md) | All the events that a page instance may emit. | | ||
|
||
## Interfaces | ||
|
||
| Interface | Description | | ||
| --- | --- | | ||
| [BoundingBox](./puppeteer.boundingbox.md) | | | ||
| [BoxModel](./puppeteer.boxmodel.md) | | | ||
| [BrowserFetcherOptions](./puppeteer.browserfetcheroptions.md) | | | ||
| [ClickOptions](./puppeteer.clickoptions.md) | | | ||
| [ConsoleMessageLocation](./puppeteer.consolemessagelocation.md) | | | ||
| [KeyDefinition](./puppeteer.keydefinition.md) | Copyright 2017 Google Inc. All rights reserved.<!-- -->Licensed under the Apache License, Version 2.0 (the 'License'); you may not use this file except in compliance with the License. You may obtain a copy of the License at<!-- -->http://www.apache.org/licenses/LICENSE-2.0<!-- -->Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. | | ||
| [Metrics](./puppeteer.metrics.md) | | | ||
| [PressOptions](./puppeteer.pressoptions.md) | | | ||
| [SerializedAXNode](./puppeteer.serializedaxnode.md) | Represents a Node and the properties of it that are relevant to Accessibility. | | ||
| [SnapshotOptions](./puppeteer.snapshotoptions.md) | | | ||
| [WaitForTargetOptions](./puppeteer.waitfortargetoptions.md) | | | ||
|
||
## Variables | ||
|
||
| Variable | Description | | ||
| --- | --- | | ||
| [EVALUATION\_SCRIPT\_URL](./puppeteer.evaluation_script_url.md) | | | ||
| [keyDefinitions](./puppeteer.keydefinitions.md) | | | ||
| [puppeteerErrors](./puppeteer.puppeteererrors.md) | | | ||
|
||
## Type Aliases | ||
|
||
| Type Alias | Description | | ||
| --- | --- | | ||
| [ConsoleMessageType](./puppeteer.consolemessagetype.md) | The supported types for console messages. | | ||
| [KeyInput](./puppeteer.keyinput.md) | | | ||
| [MouseButtonInput](./puppeteer.mousebuttoninput.md) | | | ||
| [PuppeteerErrors](./puppeteer.puppeteererrors.md) | | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Metrics](./puppeteer.metrics.md) > [Documents](./puppeteer.metrics.documents.md) | ||
|
||
## Metrics.Documents property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
Documents?: number; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Metrics](./puppeteer.metrics.md) > [Frames](./puppeteer.metrics.frames.md) | ||
|
||
## Metrics.Frames property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
Frames?: number; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Metrics](./puppeteer.metrics.md) > [JSEventListeners](./puppeteer.metrics.jseventlisteners.md) | ||
|
||
## Metrics.JSEventListeners property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
JSEventListeners?: number; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Metrics](./puppeteer.metrics.md) > [JSHeapTotalSize](./puppeteer.metrics.jsheaptotalsize.md) | ||
|
||
## Metrics.JSHeapTotalSize property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
JSHeapTotalSize?: number; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Metrics](./puppeteer.metrics.md) > [JSHeapUsedSize](./puppeteer.metrics.jsheapusedsize.md) | ||
|
||
## Metrics.JSHeapUsedSize property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
JSHeapUsedSize?: number; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Metrics](./puppeteer.metrics.md) > [LayoutCount](./puppeteer.metrics.layoutcount.md) | ||
|
||
## Metrics.LayoutCount property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
LayoutCount?: number; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Metrics](./puppeteer.metrics.md) > [LayoutDuration](./puppeteer.metrics.layoutduration.md) | ||
|
||
## Metrics.LayoutDuration property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
LayoutDuration?: number; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Metrics](./puppeteer.metrics.md) | ||
|
||
## Metrics interface | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface Metrics | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [Documents](./puppeteer.metrics.documents.md) | number | | | ||
| [Frames](./puppeteer.metrics.frames.md) | number | | | ||
| [JSEventListeners](./puppeteer.metrics.jseventlisteners.md) | number | | | ||
| [JSHeapTotalSize](./puppeteer.metrics.jsheaptotalsize.md) | number | | | ||
| [JSHeapUsedSize](./puppeteer.metrics.jsheapusedsize.md) | number | | | ||
| [LayoutCount](./puppeteer.metrics.layoutcount.md) | number | | | ||
| [LayoutDuration](./puppeteer.metrics.layoutduration.md) | number | | | ||
| [Nodes](./puppeteer.metrics.nodes.md) | number | | | ||
| [RecalcStyleCount](./puppeteer.metrics.recalcstylecount.md) | number | | | ||
| [RecalcStyleDuration](./puppeteer.metrics.recalcstyleduration.md) | number | | | ||
| [ScriptDuration](./puppeteer.metrics.scriptduration.md) | number | | | ||
| [TaskDuration](./puppeteer.metrics.taskduration.md) | number | | | ||
| [Timestamp](./puppeteer.metrics.timestamp.md) | number | | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Metrics](./puppeteer.metrics.md) > [Nodes](./puppeteer.metrics.nodes.md) | ||
|
||
## Metrics.Nodes property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
Nodes?: number; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Metrics](./puppeteer.metrics.md) > [RecalcStyleCount](./puppeteer.metrics.recalcstylecount.md) | ||
|
||
## Metrics.RecalcStyleCount property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
RecalcStyleCount?: number; | ||
``` |
Oops, something went wrong.