Skip to content

Commit 1315c90

Browse files
committed
Fix the inconsistent semicolon delimiting in typescript types and interfaces
1 parent 51c5fb4 commit 1315c90

File tree

58 files changed

+255
-228
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+255
-228
lines changed

.github/actions/src/commons.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,35 @@ import { getExecOutput } from '@actions/exec';
22
import memoize from 'lodash/memoize.js';
33

44
export interface RawPackageRecord {
5-
directory: string
6-
hasChanges: boolean
5+
directory: string;
6+
hasChanges: boolean;
77
package: {
8-
name: string
9-
devDependencies: Record<string, string>
10-
dependencies: Record<string, string>
11-
}
8+
name: string;
9+
devDependencies: Record<string, string>;
10+
dependencies: Record<string, string>;
11+
};
1212
}
1313

1414
interface BasePackageRecord {
1515
/**
1616
* Directory within which the `package.json` file was found
1717
*/
18-
directory: string
18+
directory: string;
1919

2020
/**
2121
* Full scoped package name
2222
*/
23-
name: string
23+
name: string;
2424
/**
2525
* `true` if git detected changes from within the package's subdirectories,
2626
* `false` otherwise
2727
*/
28-
changes: boolean
28+
changes: boolean;
2929
/**
3030
* `true` if playwright is present under devDependencies. This means that the package
3131
* might need playwright for its tests
3232
*/
33-
needsPlaywright: boolean
33+
needsPlaywright: boolean;
3434
}
3535

3636
export interface BundlePackageRecord extends BasePackageRecord {

devserver/src/components/SettingsPopup.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { Card, EditableText, Switch, Tooltip } from '@blueprintjs/core';
22
import { useState } from 'react';
33

44
type SettingsPopupProps = {
5-
backend: string
6-
useCompiledForTabs: boolean
7-
onUseCompiledChange?: (newValue: boolean) => void
8-
onBackendChange?: (newValue: string) => void
5+
backend: string;
6+
useCompiledForTabs: boolean;
7+
onUseCompiledChange?: (newValue: boolean) => void;
8+
onBackendChange?: (newValue: string) => void;
99
};
1010

1111
export default function SettingsPopup(props: SettingsPopupProps) {

devserver/src/components/Workspace.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import { useDimensions } from './utils/Hooks';
1010

1111
type DispatchProps = {
1212
handleEditorEval: () => void;
13-
handleEditorValueChange: (newValue: string) => void
14-
handlePromptAutocomplete: (row: number, col: number, callback: any) => void
13+
handleEditorValueChange: (newValue: string) => void;
14+
handlePromptAutocomplete: (row: number, col: number, callback: any) => void;
1515
};
1616

1717
type StateProps = {
@@ -21,9 +21,9 @@ type StateProps = {
2121
replProps: ReplProps;
2222
sideContentHeight?: number;
2323
sideContentIsResizeable?: boolean;
24-
editorValue: string
24+
editorValue: string;
2525

26-
sideContentProps: SideContentProps
26+
sideContentProps: SideContentProps;
2727
};
2828

2929
const rightResizeOnly: Enable = { right: true };

devserver/src/components/__tests__/Playground.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import '../../styles/index.scss';
88

99
declare module '@vitest/browser/context' {
1010
interface BrowserCommands {
11-
setLocalStorage: (key: string, value: string) => Promise<void>
11+
setLocalStorage: (key: string, value: string) => Promise<void>;
1212
}
1313
}
1414

devserver/src/components/controlBar/ControlBarClearButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { IconNames } from '@blueprintjs/icons';
33
import ControlButton from '../ControlButton';
44

55
type Props = {
6-
onClick: () => void
6+
onClick: () => void;
77
};
88

99
export const ControlBarClearButton = (props: Props) => <Tooltip content="Clear the editor and context">

devserver/src/components/controlBar/ControlBarRefreshButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { IconNames } from '@blueprintjs/icons';
33
import ControlButton from '../ControlButton';
44

55
type Props = {
6-
onClick: () => void
6+
onClick: () => void;
77
};
88

99
export const ControlBarRefreshButton = (props: Props) => <Tooltip content="Manually refresh the side content">

devserver/src/components/editor/Editor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ type DispatchProps = {
2525

2626
export type EditorStateProps = {
2727
newCursorPosition?: Position;
28-
editorValue: string
29-
handleEditorValueChange: (newCode: string) => void
28+
editorValue: string;
29+
handleEditorValueChange: (newCode: string) => void;
3030
};
3131

3232
export type EditorProps = DispatchProps & EditorStateProps;

devserver/src/components/sideContent/SideContent.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ export type SideContentProps = {
2121
renderActiveTabPanelOnly?: boolean;
2222
editorWidth?: string;
2323
sideContentHeight?: number;
24-
dynamicTabs: SideContentTab[]
24+
dynamicTabs: SideContentTab[];
2525

26-
selectedTabId: string
27-
alerts: string[]
28-
onChange?: (newId: string, oldId: string) => void
26+
selectedTabId: string;
27+
alerts: string[];
28+
onChange?: (newId: string, oldId: string) => void;
2929
};
3030

3131
interface TabIconProps {
32-
iconName: IconName
33-
tooltip: string
34-
shouldAlert?: boolean
32+
iconName: IconName;
33+
tooltip: string;
34+
shouldAlert?: boolean;
3535
}
3636

3737
function TabIcon({ iconName, tooltip, shouldAlert }: TabIconProps) {

devserver/src/components/sideContent/types.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@ import type React from 'react';
44
import type { requireProvider } from './importers/requireProvider';
55

66
export type DebuggerContext = {
7-
context: Context
7+
context: Context;
88
};
99

1010
export type SideContentTab = {
11-
id: string
12-
label: string
13-
iconName: IconName
14-
body: React.JSX.Element
11+
id: string;
12+
label: string;
13+
iconName: IconName;
14+
body: React.JSX.Element;
1515
};
1616

1717
export type ModuleSideContent = {
1818
label: string;
19-
iconName: IconName
20-
toSpawn?: (context: DebuggerContext) => boolean
21-
body: (context: DebuggerContext) => React.JSX.Element
19+
iconName: IconName;
20+
toSpawn?: (context: DebuggerContext) => boolean;
21+
body: (context: DebuggerContext) => React.JSX.Element;
2222
};
2323

2424
export type RawTab = (provider: ReturnType<typeof requireProvider>, react: typeof React) => Promise<{ default: ModuleSideContent }>;

docs/src/lib/lintplugin/2-rules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The rule has a configuration option, which is just an object whose keys represen
1313

1414
```ts
1515
type RuleOptions = {
16-
[source: string]: string | string[]
16+
[source: string]: string | string[];
1717
};
1818
```
1919

0 commit comments

Comments
 (0)