Skip to content

Commit

Permalink
CLEANUP linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Jan 21, 2020
1 parent bda16e6 commit 5bac51c
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 15 deletions.
5 changes: 1 addition & 4 deletions addons/a11y/src/components/Report/HighlightToggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,4 @@ class HighlightToggle extends Component<ToggleProps> {
}
}

export default connect(
mapStateToProps,
mapDispatchToProps
)(HighlightToggle);
export default connect(mapStateToProps, mapDispatchToProps)(HighlightToggle);
5 changes: 4 additions & 1 deletion addons/contexts/src/manager/components/ToolBar.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ describe('Tests on addon-contexts component: ToolBar', () => {
icon: 'box' as const,
nodeId: 'Some Context B',
options: { cancelable: true, deep: false, disable: false },
params: [{ name: 'Some Param X', props: {} }, { name: 'Some Param Y', props: {} }],
params: [
{ name: 'Some Param X', props: {} },
{ name: 'Some Param Y', props: {} },
],
title: 'Some Context B',
},
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ describe('Tests on addon-contexts component: ToolBarControl', () => {
icon: 'box' as const,
nodeId: 'Some Context',
options: { cancelable: true, deep: false, disable: false },
params: [{ name: 'A', props: {} }, { name: 'B', props: {} }],
params: [
{ name: 'A', props: {} },
{ name: 'B', props: {} },
],
title: 'Some Context',
selected: '',
setSelected: jest.fn,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,5 @@ interface TypeScriptHtmlComponentProps {
text: string;
}

export const TypeScriptHtmlComponent: FC<
React.HTMLAttributes<HTMLDivElement> & TypeScriptHtmlComponentProps
> = () => <div>My HTML component</div>;
export const TypeScriptHtmlComponent: FC<React.HTMLAttributes<HTMLDivElement> &
TypeScriptHtmlComponentProps> = () => <div>My HTML component</div>;
5 changes: 4 additions & 1 deletion lib/components/src/tooltip/TooltipMessage.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ storiesOf('basics/Tooltip/TooltipMessage', module)
<TooltipMessage
title="Lorem ipsum dolor sit"
desc="Amet consectatur vestibulum concet durum politu coret weirom"
links={[{ title: 'Get more tips', href: 'test' }, { title: 'Done', href: 'test' }]}
links={[
{ title: 'Get more tips', href: 'test' },
{ title: 'Done', href: 'test' },
]}
/>
))
.add('minimal message', () => (
Expand Down
8 changes: 3 additions & 5 deletions lib/components/src/tooltip/WithTooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,9 @@ WithTooltipPure.defaultProps = {
tooltipShown: false,
};

const WithToolTipState: FunctionComponent<
WithTooltipPureProps & {
startOpen?: boolean;
}
> = ({ startOpen, ...rest }) => {
const WithToolTipState: FunctionComponent<WithTooltipPureProps & {
startOpen?: boolean;
}> = ({ startOpen, ...rest }) => {
const [tooltipShown, onVisibilityChange] = useState(startOpen || false);

useEffect(() => {
Expand Down

0 comments on commit 5bac51c

Please sign in to comment.