feat: Lint paragraphs except in test files & fix

Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>
This commit is contained in:
Carlos Esteban Lopez
2022-12-15 00:02:48 -05:00
committed by Carlos Lopez
parent 8de0276086
commit e75f39e603
16 changed files with 60 additions and 40 deletions
@@ -24,6 +24,7 @@ import {
ListItemSecondaryAction,
ListItemIcon,
} from '@material-ui/core';
import Typography from '@material-ui/core/Typography';
import OpenInNewIcon from '@material-ui/icons/OpenInNew';
import useAsync from 'react-use/lib/useAsync';
import _unescape from 'lodash/unescape';
@@ -51,11 +52,11 @@ export const Content = (props: StackOverflowQuestionsContentProps) => {
}, []);
if (loading) {
return <p>loading...</p>;
return <Typography>loading...</Typography>;
}
if (error || !value || !value.length) {
return <p>could not load questions</p>;
return <Typography>could not load questions</Typography>;
}
const getSecondaryText = (answer_count: Number) =>