fix no-extra-boolean-cast

pull/8592/head
Niklas Fiekas 2021-04-07 16:34:44 +02:00
parent b11b9e3cb0
commit 54b7034bf0
3 changed files with 2 additions and 3 deletions

View File

@ -36,7 +36,6 @@
"no-self-assign": "off",
"no-constant-condition": "off",
"no-prototype-builtins": "off",
"no-extra-boolean-cast": "off",
"no-async-promise-executor": "off"
}
}

View File

@ -26,7 +26,7 @@ export default function status(ctrl: Ctrl): string {
return noarg('draw');
case 'outoftime':
return `${d.game.turns % 2 === 0 ? noarg('whiteTimeOut') : noarg('blackTimeOut')}${
!!d.game.winner ? '' : `${noarg('draw')}`
d.game.winner ? '' : `${noarg('draw')}`
}`;
case 'noStart':
return (d.game.winner == 'white' ? 'Black' : 'White') + " didn't move";

View File

@ -51,7 +51,7 @@ export default function renderActions(ctrl: MsgCtrl, convo: Convo): VNode[] {
hook: bind('click', withConfirm(ctrl.delete)),
})
);
if (!!convo.msgs[0])
if (convo.msgs[0])
nodes.push(
h(`button.${cls}.bad`, {
key: 'report',