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

View File

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

View File

@ -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',

View File

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

View File

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

View File

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

View File

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