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

@@ -48,7 +48,7 @@ export class MenuActions extends React.Component<MenuActionsProps> {
static defaultProps: MenuActionsProps = {
get removeConfirmationMessage() {
return `Remove item?`;
}
},
};
public id = uniqueId("menu_actions_");
+5 -5
View File
@@ -71,7 +71,7 @@ const defaultPropsMenu: Partial<MenuProps> = {
closeOnClickItem: true,
closeOnClickOutside: true,
closeOnScroll: false,
toggleEvent: "click"
toggleEvent: "click",
};
export class Menu extends React.Component<MenuProps, State> {
@@ -196,12 +196,12 @@ export class Menu extends React.Component<MenuProps, State> {
top: renderMenuOnTop,
bottom: !renderMenuOnTop,
left: renderMenuLeft,
right: !renderMenuLeft
right: !renderMenuLeft,
},
menuStyle: {
top: renderMenuOnTop ? menuOnTopPosition : menuOnBottomPosition,
left: renderMenuLeft ? menuOnLeftSidePosition : menuOnRightSidePosition,
}
},
});
};
@@ -324,7 +324,7 @@ export class Menu extends React.Component<MenuProps, State> {
const menuItems = React.Children.toArray(children).map((item: ReactElement<MenuItemProps>, index) => {
if (item.type === MenuItem) {
return React.cloneElement(item, {
ref: (item: MenuItem) => this.bindItemRef(item, index)
ref: (item: MenuItem) => this.bindItemRef(item, index),
});
}
@@ -340,7 +340,7 @@ export class Menu extends React.Component<MenuProps, State> {
className={className}
style={{
left: this.state?.menuStyle?.left,
top: this.state?.menuStyle?.top
top: this.state?.menuStyle?.top,
}}
>
{menuItems}