all the lints

This commit is contained in:
Olivier Gagnon
2021-05-01 03:17:31 -04:00
parent abe0330dc3
commit d745150c45
231 changed files with 1458 additions and 1439 deletions
@@ -12,8 +12,6 @@ import { BaseCostPerSleeve,
PopupId } from "../SleeveCovenantPurchases";
import { IPlayer } from "../../IPlayer";
import { numeralWrapper } from "../../../ui/numeralFormat";
import { PopupCloseButton } from "../../../ui/React/PopupCloseButton";
import { StdButton } from "../../../ui/React/StdButton";
import { Money } from "../../../ui/React/Money";
@@ -51,13 +49,13 @@ export class CovenantPurchasesRoot extends React.Component<IProps, IState> {
/**
* Force a rerender by just changing an arbitrary state value
*/
rerender() {
rerender(): void {
this.setState((state: IState) => ({
update: state.update + 1,
}));
}
render() {
render(): React.ReactNode {
// Purchasing a new Duplicate Sleeve
let purchaseDisabled = false;
if (!this.props.p.canAfford(this.purchaseCost())) {
@@ -66,7 +64,7 @@ export class CovenantPurchasesRoot extends React.Component<IProps, IState> {
if (this.props.p.sleevesFromCovenant >= MaxSleevesFromCovenant) {
purchaseDisabled = true;
}
const purchaseOnClick = () => {
const purchaseOnClick = (): void => {
if (this.props.p.sleevesFromCovenant >= MaxSleevesFromCovenant) { return; }
if (this.props.p.canAfford(this.purchaseCost())) {