Add linter on CI
This commit is contained in:
@ -34,7 +34,7 @@ function PersonChip({ name, picture }: OwnProps) {
|
||||
<img
|
||||
data-testid="person-chip-image"
|
||||
src={picture ? picture.toString() : PersonPlaceholder.toString()}
|
||||
alt="person-picture"
|
||||
alt="person"
|
||||
/>
|
||||
{name}
|
||||
</StyledContainer>
|
||||
|
||||
@ -2,11 +2,13 @@ import CompanyChip from '../CompanyChip';
|
||||
import { ThemeProvider } from '@emotion/react';
|
||||
import { lightTheme } from '../../../layout/styles/themes';
|
||||
|
||||
export default {
|
||||
const component = {
|
||||
title: 'CompanyChip',
|
||||
component: CompanyChip,
|
||||
};
|
||||
|
||||
export default component;
|
||||
|
||||
export const RegularCompanyChip = () => {
|
||||
return (
|
||||
<ThemeProvider theme={lightTheme}>
|
||||
@ -2,11 +2,13 @@ import { ThemeProvider } from '@emotion/react';
|
||||
import { lightTheme } from '../../../layout/styles/themes';
|
||||
import PersonChip from '../PersonChip';
|
||||
|
||||
export default {
|
||||
const component = {
|
||||
title: 'PersonChip',
|
||||
component: PersonChip,
|
||||
};
|
||||
|
||||
export default component;
|
||||
|
||||
export const RegularPersonChip = () => {
|
||||
return (
|
||||
<ThemeProvider theme={lightTheme}>
|
||||
@ -3,7 +3,7 @@ import { render } from '@testing-library/react';
|
||||
import {
|
||||
RegularCompanyChip,
|
||||
RegularCompanyChipWithImage,
|
||||
} from '../__stories__/CompanyChip';
|
||||
} from '../__stories__/CompanyChip.stories';
|
||||
|
||||
it('Checks the CompanyChip renders', () => {
|
||||
const { getByText } = render(<RegularCompanyChip />);
|
||||
|
||||
@ -3,7 +3,7 @@ import { render } from '@testing-library/react';
|
||||
import {
|
||||
RegularPersonChip,
|
||||
RegularPersonChipWithImage,
|
||||
} from '../__stories__/PersonChip';
|
||||
} from '../__stories__/PersonChip.stories';
|
||||
|
||||
it('Checks the PersonChip renders', () => {
|
||||
const { getByText, getByTestId } = render(<RegularPersonChip />);
|
||||
|
||||
@ -2,11 +2,13 @@ import Checkbox from '../Checkbox';
|
||||
import { ThemeProvider } from '@emotion/react';
|
||||
import { lightTheme } from '../../../layout/styles/themes';
|
||||
|
||||
export default {
|
||||
const component = {
|
||||
title: 'Checkbox',
|
||||
component: Checkbox,
|
||||
};
|
||||
|
||||
export default component;
|
||||
|
||||
export const RegularCheckbox = () => {
|
||||
return (
|
||||
<ThemeProvider theme={lightTheme}>
|
||||
|
||||
@ -3,11 +3,13 @@ import { ThemeProvider } from '@emotion/react';
|
||||
import { lightTheme } from '../../../../layout/styles/themes';
|
||||
import { faArrowDown } from '@fortawesome/pro-regular-svg-icons';
|
||||
|
||||
export default {
|
||||
const component = {
|
||||
title: 'SortAndFilterBar',
|
||||
component: SortAndFilterBar,
|
||||
};
|
||||
|
||||
export default component;
|
||||
|
||||
type OwnProps = {
|
||||
removeFunction: () => void;
|
||||
};
|
||||
|
||||
@ -3,11 +3,13 @@ import { ThemeProvider } from '@emotion/react';
|
||||
import { lightTheme } from '../../../../layout/styles/themes';
|
||||
import { faArrowDown } from '@fortawesome/pro-regular-svg-icons';
|
||||
|
||||
export default {
|
||||
const component = {
|
||||
title: 'SortOrFilterChip',
|
||||
component: SortOrFilterChip,
|
||||
};
|
||||
|
||||
export default component;
|
||||
|
||||
type OwnProps = {
|
||||
removeFunction: () => void;
|
||||
};
|
||||
|
||||
@ -3,11 +3,13 @@ import { ThemeProvider } from '@emotion/react';
|
||||
import { lightTheme } from '../../../../layout/styles/themes';
|
||||
import { faBuilding } from '@fortawesome/pro-regular-svg-icons';
|
||||
|
||||
export default {
|
||||
const component = {
|
||||
title: 'TableHeader',
|
||||
component: TableHeader,
|
||||
};
|
||||
|
||||
export default component;
|
||||
|
||||
export const RegularTableHeader = () => {
|
||||
return (
|
||||
<ThemeProvider theme={lightTheme}>
|
||||
|
||||
Reference in New Issue
Block a user