Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hbcarlos committed Jan 31, 2023
1 parent 6dae1d8 commit aeda104
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions packages/collaboration/src/collaboratorspanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ export class CollaboratorsBody extends ReactWidget {

current = PathExt.basename(currentFileLocation);
current =
current.length > 25 ? current.slice(0, 12).concat(`…`) : current;
separator = "•";
current.length > 25 ? current.slice(0, 12).concat('…') : current;
separator = '•';
}

const onClick = () => {
Expand Down
8 changes: 4 additions & 4 deletions packages/collaboration/src/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ export class RendererUserMenu extends MenuBar.Renderer {
* @returns A virtual element representing the item.
*/
renderItem(data: MenuBar.IRenderData): VirtualElement {
let className = this.createItemClass(data);
let dataset = this.createItemDataset(data);
let aria = this.createItemARIA(data);
const className = this.createItemClass(data);
const dataset = this.createItemDataset(data);
const aria = this.createItemARIA(data);
return h.li(
{ className, dataset, tabindex: "0", onfocus: data.onfocus, ...aria },
this._createUserIcon(),
Expand All @@ -49,7 +49,7 @@ export class RendererUserMenu extends MenuBar.Renderer {
* @returns A virtual element representing the item label.
*/
renderLabel(data: MenuBar.IRenderData): VirtualElement {
let content = this.formatLabel(data);
const content = this.formatLabel(data);
return h.div(
{ className: "lm-MenuBar-itemLabel jp-MenuBar-label" },
content,
Expand Down
2 changes: 1 addition & 1 deletion packages/collaboration/src/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const IGlobalAwareness = new Token<IAwareness>(
/**
* The awareness interface.
*/
export interface IAwareness extends Awareness {}
export type IAwareness = Awareness;

/**
* An interface describing the user menu.
Expand Down
2 changes: 1 addition & 1 deletion packages/docprovider/src/yprovider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class WebSocketProvider implements IDocumentProvider {
this._ydoc = options.model.ydoc;
this._awareness = options.model.awareness;
this._yWebsocketProvider = null;

const user = options.user;

user.ready
Expand Down

0 comments on commit aeda104

Please sign in to comment.