Lint all the things

This commit is contained in:
Dave
2025-08-19 16:23:29 -04:00
parent f6d6b548be
commit 33fb60ca1a
640 changed files with 2129 additions and 3927 deletions

View File

@@ -1,6 +1,6 @@
import { Table } from "antd";
import Dinero from "dinero.js";
import React, { useMemo } from "react";
import { useMemo } from "react";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";
@@ -13,7 +13,7 @@ const mapStateToProps = createStructuredSelector({
//currentUser: selectCurrentUser
bodyshop: selectBodyshop
});
const mapDispatchToProps = (dispatch) => ({
const mapDispatchToProps = () => ({
//setUserLanguage: language => dispatch(setUserLanguage(language))
});
export default connect(mapStateToProps, mapDispatchToProps)(JobTotalsTableTotals);
@@ -181,7 +181,7 @@ export function JobTotalsTableTotals({ bodyshop, job }) {
total: job.job_totals.totals.custPayable.federal_tax
}
],
rome: [],
rome: []
}),
{
key: t("jobs.fields.other_amount_payable"),
@@ -219,7 +219,6 @@ export function JobTotalsTableTotals({ bodyshop, job }) {
}
];
// TODO: was removed by Patrick during a CI bug fix.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [job.job_totals, job.cieca_pft, t, bodyshop.md_responsibility_centers]);
const columns = [
@@ -228,7 +227,7 @@ export function JobTotalsTableTotals({ bodyshop, job }) {
dataIndex: "key",
key: "key",
width: "80%",
onCell: (record, rowIndex) => {
onCell: (record) => {
return { style: { fontWeight: record.bold && "bold" } };
}
},
@@ -239,7 +238,7 @@ export function JobTotalsTableTotals({ bodyshop, job }) {
align: "right",
render: (text, record) => (record.render ? record.render : Dinero(record.total).toFormat()),
width: "20%",
onCell: (record, rowIndex) => {
onCell: (record) => {
return { style: { fontWeight: record.bold && "bold" } };
}
}