chore(linting): enable required semicolons rule in TS (#6701)

This commit is contained in:
Max Schmitt 2021-05-24 00:09:46 +02:00 committed by GitHub
parent 3097b9a4f4
commit ac0980e1ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 13 additions and 13 deletions

View File

@ -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", {

View File

@ -28,7 +28,7 @@ export type ActionInContext = {
isMainFrame: boolean;
action: Action;
committed?: boolean;
}
};
export class CodeGenerator extends EventEmitter {
private _currentAction: ActionInContext | null = null;

View File

@ -29,7 +29,7 @@ export type ActionName =
export type ActionBase = {
name: ActionName,
signals: Signal[],
}
};
export type ClickAction = ActionBase & {
name: 'click',

View File

@ -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;

View File

@ -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[]
}
};

View File

@ -23,7 +23,7 @@ export type KeyDefinition = {
shiftKeyCode?: number;
text?: string;
location?: number;
}
};
export type KeyboardLayout = { [s: string]: KeyDefinition; };

View File

@ -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>();