fix no-extra-boolean-cast
parent
b11b9e3cb0
commit
54b7034bf0
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue