Lint: comma-spacing (error) & comma-dangle (error) (#4200)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-11-02 17:38:20 -04:00
1 parent 02e77afcd1
commit c6dce043a7
406 files changed
+1590 -1580

No files matched your search

@@ -51,8 +51,8 @@ const mockHotbars: { [id: string]: any } = {
"1": {
id: "1",
name: "Default",
items: [] as any
}
items: [] as any,
},
};
jest.mock("../../../../common/hotbar-store", () => ({
@@ -61,15 +61,15 @@ jest.mock("../../../../common/hotbar-store", () => ({
hotbars: [mockHotbars["1"]],
getById: (id: string) => mockHotbars[id],
remove: () => {},
hotbarIndex: () => 0
})
}
hotbarIndex: () => 0,
}),
},
}));
describe("<HotbarRemoveCommand />", () => {
beforeEach(() => {
mockFs({
"tmp": {}
"tmp": {},
});
UserStore.createInstance();
ThemeStore.createInstance();
@@ -95,7 +95,7 @@ export class HotbarEntityIcon extends React.Component<Props> {
const className = cssNames("HotbarEntityIcon", this.props.className, {
interactive: true,
active: this.isActive(entity),
disabled: !entity
disabled: !entity,
});
const onOpen = async () => {
@@ -103,7 +103,7 @@ export class HotbarEntityIcon extends React.Component<Props> {
menuItems.unshift({
title: "Remove from Hotbar",
onClick: () => remove(entity.metadata.uid)
onClick: () => remove(entity.metadata.uid),
});
this.contextMenu.menuItems = menuItems;
@@ -58,7 +58,7 @@ function onMenuItemClick(menuItem: CatalogEntityContextMenu) {
ok: () => {
menuItem.onClick();
},
message: menuItem.confirm.message
message: menuItem.confirm.message,
});
} else {
menuItem.onClick();
@@ -139,8 +139,8 @@ export class HotbarMenu extends React.Component<Props> {
menuItems={[
{
title: "Remove from Hotbar",
onClick: () => this.removeItem(item.entity.uid)
}
onClick: () => this.removeItem(item.entity.uid),
},
]}
disabled
size={40}
@@ -49,7 +49,7 @@ export const HotbarSelector = observer(({ hotbar }: Props) => {
onClick={() => CommandOverlay.open(<HotbarSwitchCommand />)}
tooltip={{
preferredPositions: [TooltipPosition.TOP, TooltipPosition.TOP_LEFT],
children: hotbar.name
children: hotbar.name,
}}
className="SelectorIndex"
/>