Skip to content
Snippets Groups Projects
Unverified Commit 73d281b6 authored by Matiss Janis Aboltins's avatar Matiss Janis Aboltins Committed by GitHub
Browse files

:recycle: (eslint) disallow unnecessary curly braces (#2111)

parent 03e943f3
No related branches found
No related tags found
No related merge requests found
......@@ -97,6 +97,7 @@ module.exports = {
// ],
'no-var': 'warn',
'react/jsx-curly-brace-presence': 'warn',
'object-shorthand': ['warn', 'properties'],
'import/extensions': [
......
......@@ -9,7 +9,7 @@ type FiltersButtonProps = {
function FiltersButton({ onClick }: FiltersButtonProps) {
return (
<Button type="bare" onClick={onClick} title={'Filters'}>
<Button type="bare" onClick={onClick} title="Filters">
<SettingsSliderAlternate
style={{ width: 16, height: 16, marginRight: 5 }}
/>{' '}
......
......@@ -73,7 +73,7 @@ export default function ReportTableHeader({
minWidth: 85,
...styles.tnum,
}}
value={'Deposits'}
value="Deposits"
width="flex"
/>
<Cell
......@@ -81,7 +81,7 @@ export default function ReportTableHeader({
minWidth: 85,
...styles.tnum,
}}
value={'Payments'}
value="Payments"
width="flex"
/>
</>
......@@ -91,7 +91,7 @@ export default function ReportTableHeader({
minWidth: 85,
...styles.tnum,
}}
value={'Totals'}
value="Totals"
width="flex"
/>
<Cell
......@@ -99,7 +99,7 @@ export default function ReportTableHeader({
minWidth: 85,
...styles.tnum,
}}
value={'Average'}
value="Average"
width="flex"
/>
{scrollWidth > 0 && <Cell width={scrollWidth} />}
......
......@@ -57,7 +57,7 @@ export default function ReportTableTotals({
minWidth: 125,
...styles.tnum,
}}
value={'Totals'}
value="Totals"
width="flex"
/>
{mode === 'time'
......
......@@ -62,7 +62,7 @@ export function SaveReportMenuButton() {
flexShrink: 0,
}}
>
{'Unsaved Report'}&nbsp;
Unsaved Report&nbsp;
</Text>
<ExpandArrow width={8} height={8} style={{ marginRight: 5 }} />
</Button>
......
......@@ -198,7 +198,7 @@ function BarGraph({
))}
</Bar>
{yAxis === 'date' && balanceTypeOp === 'totalTotals' && (
<Bar dataKey={'totalDebts'} stackId="a">
<Bar dataKey="totalDebts" stackId="a">
{data[splitData].map((entry, index) => (
<Cell
key={`cell-${index}`}
......
......@@ -77,7 +77,7 @@ const CustomTooltip = ({ active, payload, label }: CustomTooltipProps) => {
);
})}
<AlignedText
left={'Total'}
left="Total"
right={amountToCurrency(sumTotals)}
style={{
fontWeight: 600,
......
---
category: Maintenance
authors: [MatissJanis]
---
eslint: disallow unnecessary curly braces
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment