mirror of
https://github.com/microsoft/playwright.git
synced 2024-08-16 23:50:33 +03: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,
|
||||
"allowTemplateLiterals": true
|
||||
}],
|
||||
"semi": 2,
|
||||
"no-extra-semi": 2,
|
||||
"@typescript-eslint/semi": [2],
|
||||
"comma-style": [2, "last"],
|
||||
"wrap-iife": [2, "inside"],
|
||||
"spaced-comment": [2, "always", {
|
||||
|
@ -28,7 +28,7 @@ export type ActionInContext = {
|
||||
isMainFrame: boolean;
|
||||
action: Action;
|
||||
committed?: boolean;
|
||||
}
|
||||
};
|
||||
|
||||
export class CodeGenerator extends EventEmitter {
|
||||
private _currentAction: ActionInContext | null = null;
|
||||
|
@ -29,7 +29,7 @@ export type ActionName =
|
||||
export type ActionBase = {
|
||||
name: ActionName,
|
||||
signals: Signal[],
|
||||
}
|
||||
};
|
||||
|
||||
export type ClickAction = ActionBase & {
|
||||
name: 'click',
|
||||
|
@ -107,7 +107,7 @@ export type ContextEntry = {
|
||||
options: BrowserContextOptions;
|
||||
pages: PageEntry[];
|
||||
resources: ResourceSnapshot[];
|
||||
}
|
||||
};
|
||||
|
||||
export type PageEntry = {
|
||||
actions: trace.ActionTraceEvent[];
|
||||
@ -118,7 +118,7 @@ export type PageEntry = {
|
||||
width: number,
|
||||
height: number,
|
||||
}[]
|
||||
}
|
||||
};
|
||||
|
||||
export class PersistentSnapshotStorage extends BaseSnapshotStorage {
|
||||
private _resourcesDir: string;
|
||||
|
@ -110,7 +110,7 @@ export type PDFOptions = {
|
||||
height?: string,
|
||||
preferCSSPageSize?: boolean,
|
||||
margin?: {top?: string, bottom?: string, left?: string, right?: string},
|
||||
}
|
||||
};
|
||||
|
||||
export type CSSCoverageOptions = {
|
||||
resetOnNavigation?: boolean,
|
||||
@ -346,9 +346,9 @@ export type OriginStorage = {
|
||||
export type StorageState = {
|
||||
cookies: NetworkCookie[],
|
||||
origins: OriginStorage[]
|
||||
}
|
||||
};
|
||||
|
||||
export type SetStorageState = {
|
||||
cookies?: SetNetworkCookieParam[],
|
||||
origins?: OriginStorage[]
|
||||
}
|
||||
};
|
||||
|
@ -23,7 +23,7 @@ export type KeyDefinition = {
|
||||
shiftKeyCode?: number;
|
||||
text?: string;
|
||||
location?: number;
|
||||
}
|
||||
};
|
||||
|
||||
export type KeyboardLayout = { [s: string]: KeyDefinition; };
|
||||
|
||||
|
@ -67,10 +67,10 @@ export const test = contextTest.extend<CLITestArgs>({
|
||||
|
||||
class Recorder {
|
||||
page: Page;
|
||||
_highlightCallback: Function
|
||||
_highlightInstalled: boolean
|
||||
_actionReporterInstalled: boolean
|
||||
_actionPerformedCallback: Function
|
||||
_highlightCallback: Function;
|
||||
_highlightInstalled: boolean;
|
||||
_actionReporterInstalled: boolean;
|
||||
_actionPerformedCallback: Function;
|
||||
recorderPage: Page;
|
||||
private _sources = new Map<string, Source>();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user