chore(lint): Updating to latest eslint with typescript and enabling some rules that we can. Also fixing issues with the project after update

This commit is contained in:
blam
2021-01-22 15:01:29 +01:00
parent ce526adb19
commit 5b9bcce28f
15 changed files with 471 additions and 461 deletions
@@ -99,18 +99,6 @@ const pickClassName = (
return classes.neutral;
};
const BuildsList = ({ build }: { build?: BuildWithSteps }) => (
<Box>
{build &&
build.steps &&
build.steps.map(
({ name, actions }: { name: string; actions: BuildStepAction[] }) => (
<ActionsList key={name} name={name} actions={actions} />
),
)}
</Box>
);
const ActionsList = ({
actions,
}: {
@@ -132,6 +120,18 @@ const ActionsList = ({
);
};
const BuildsList = ({ build }: { build?: BuildWithSteps }) => (
<Box>
{build &&
build.steps &&
build.steps.map(
({ name, actions }: { name: string; actions: BuildStepAction[] }) => (
<ActionsList key={name} name={name} actions={actions} />
),
)}
</Box>
);
export const BuildWithStepsPage = () => {
const { buildId = '' } = useParams();
const classes = useStyles();