fix no-extra-boolean-cast
parent
b11b9e3cb0
commit
54b7034bf0
|
@ -36,7 +36,6 @@
|
||||||
"no-self-assign": "off",
|
"no-self-assign": "off",
|
||||||
"no-constant-condition": "off",
|
"no-constant-condition": "off",
|
||||||
"no-prototype-builtins": "off",
|
"no-prototype-builtins": "off",
|
||||||
"no-extra-boolean-cast": "off",
|
|
||||||
"no-async-promise-executor": "off"
|
"no-async-promise-executor": "off"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,7 @@ export default function status(ctrl: Ctrl): string {
|
||||||
return noarg('draw');
|
return noarg('draw');
|
||||||
case 'outoftime':
|
case 'outoftime':
|
||||||
return `${d.game.turns % 2 === 0 ? noarg('whiteTimeOut') : noarg('blackTimeOut')}${
|
return `${d.game.turns % 2 === 0 ? noarg('whiteTimeOut') : noarg('blackTimeOut')}${
|
||||||
!!d.game.winner ? '' : ` • ${noarg('draw')}`
|
d.game.winner ? '' : ` • ${noarg('draw')}`
|
||||||
}`;
|
}`;
|
||||||
case 'noStart':
|
case 'noStart':
|
||||||
return (d.game.winner == 'white' ? 'Black' : 'White') + " didn't move";
|
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)),
|
hook: bind('click', withConfirm(ctrl.delete)),
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
if (!!convo.msgs[0])
|
if (convo.msgs[0])
|
||||||
nodes.push(
|
nodes.push(
|
||||||
h(`button.${cls}.bad`, {
|
h(`button.${cls}.bad`, {
|
||||||
key: 'report',
|
key: 'report',
|
||||||
|
|
Loading…
Reference in New Issue