mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore(linting): enable required semicolons rule in TS (#6701)
This commit is contained in:
parent
3097b9a4f4
commit
ac0980e1ee
@ -28,8 +28,8 @@ module.exports = {
|
|||||||
"avoidEscape": true,
|
"avoidEscape": true,
|
||||||
"allowTemplateLiterals": true
|
"allowTemplateLiterals": true
|
||||||
}],
|
}],
|
||||||
"semi": 2,
|
|
||||||
"no-extra-semi": 2,
|
"no-extra-semi": 2,
|
||||||
|
"@typescript-eslint/semi": [2],
|
||||||
"comma-style": [2, "last"],
|
"comma-style": [2, "last"],
|
||||||
"wrap-iife": [2, "inside"],
|
"wrap-iife": [2, "inside"],
|
||||||
"spaced-comment": [2, "always", {
|
"spaced-comment": [2, "always", {
|
||||||
|
|||||||
@ -28,7 +28,7 @@ export type ActionInContext = {
|
|||||||
isMainFrame: boolean;
|
isMainFrame: boolean;
|
||||||
action: Action;
|
action: Action;
|
||||||
committed?: boolean;
|
committed?: boolean;
|
||||||
}
|
};
|
||||||
|
|
||||||
export class CodeGenerator extends EventEmitter {
|
export class CodeGenerator extends EventEmitter {
|
||||||
private _currentAction: ActionInContext | null = null;
|
private _currentAction: ActionInContext | null = null;
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export type ActionName =
|
|||||||
export type ActionBase = {
|
export type ActionBase = {
|
||||||
name: ActionName,
|
name: ActionName,
|
||||||
signals: Signal[],
|
signals: Signal[],
|
||||||
}
|
};
|
||||||
|
|
||||||
export type ClickAction = ActionBase & {
|
export type ClickAction = ActionBase & {
|
||||||
name: 'click',
|
name: 'click',
|
||||||
|
|||||||
@ -107,7 +107,7 @@ export type ContextEntry = {
|
|||||||
options: BrowserContextOptions;
|
options: BrowserContextOptions;
|
||||||
pages: PageEntry[];
|
pages: PageEntry[];
|
||||||
resources: ResourceSnapshot[];
|
resources: ResourceSnapshot[];
|
||||||
}
|
};
|
||||||
|
|
||||||
export type PageEntry = {
|
export type PageEntry = {
|
||||||
actions: trace.ActionTraceEvent[];
|
actions: trace.ActionTraceEvent[];
|
||||||
@ -118,7 +118,7 @@ export type PageEntry = {
|
|||||||
width: number,
|
width: number,
|
||||||
height: number,
|
height: number,
|
||||||
}[]
|
}[]
|
||||||
}
|
};
|
||||||
|
|
||||||
export class PersistentSnapshotStorage extends BaseSnapshotStorage {
|
export class PersistentSnapshotStorage extends BaseSnapshotStorage {
|
||||||
private _resourcesDir: string;
|
private _resourcesDir: string;
|
||||||
|
|||||||
@ -110,7 +110,7 @@ export type PDFOptions = {
|
|||||||
height?: string,
|
height?: string,
|
||||||
preferCSSPageSize?: boolean,
|
preferCSSPageSize?: boolean,
|
||||||
margin?: {top?: string, bottom?: string, left?: string, right?: string},
|
margin?: {top?: string, bottom?: string, left?: string, right?: string},
|
||||||
}
|
};
|
||||||
|
|
||||||
export type CSSCoverageOptions = {
|
export type CSSCoverageOptions = {
|
||||||
resetOnNavigation?: boolean,
|
resetOnNavigation?: boolean,
|
||||||
@ -346,9 +346,9 @@ export type OriginStorage = {
|
|||||||
export type StorageState = {
|
export type StorageState = {
|
||||||
cookies: NetworkCookie[],
|
cookies: NetworkCookie[],
|
||||||
origins: OriginStorage[]
|
origins: OriginStorage[]
|
||||||
}
|
};
|
||||||
|
|
||||||
export type SetStorageState = {
|
export type SetStorageState = {
|
||||||
cookies?: SetNetworkCookieParam[],
|
cookies?: SetNetworkCookieParam[],
|
||||||
origins?: OriginStorage[]
|
origins?: OriginStorage[]
|
||||||
}
|
};
|
||||||
|
|||||||
@ -23,7 +23,7 @@ export type KeyDefinition = {
|
|||||||
shiftKeyCode?: number;
|
shiftKeyCode?: number;
|
||||||
text?: string;
|
text?: string;
|
||||||
location?: number;
|
location?: number;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type KeyboardLayout = { [s: string]: KeyDefinition; };
|
export type KeyboardLayout = { [s: string]: KeyDefinition; };
|
||||||
|
|
||||||
|
|||||||
@ -67,10 +67,10 @@ export const test = contextTest.extend<CLITestArgs>({
|
|||||||
|
|
||||||
class Recorder {
|
class Recorder {
|
||||||
page: Page;
|
page: Page;
|
||||||
_highlightCallback: Function
|
_highlightCallback: Function;
|
||||||
_highlightInstalled: boolean
|
_highlightInstalled: boolean;
|
||||||
_actionReporterInstalled: boolean
|
_actionReporterInstalled: boolean;
|
||||||
_actionPerformedCallback: Function
|
_actionPerformedCallback: Function;
|
||||||
recorderPage: Page;
|
recorderPage: Page;
|
||||||
private _sources = new Map<string, Source>();
|
private _sources = new Map<string, Source>();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user