Skip to content

Commit 06d3a0c

Browse files
committed
jsx layout closing tag
1 parent 0c0c7a4 commit 06d3a0c

File tree

8 files changed

+28
-12
lines changed

8 files changed

+28
-12
lines changed

frontend/.eslintrc.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,18 @@
3535
"@typescript-eslint/no-shadow": "error",
3636
"jsx-quotes": ["error", "prefer-double"],
3737
"max-len": ["error", 160],
38-
"react/jsx-closing-tag-location": [1, {"location": "tag-aligned"}]
38+
"react/jsx-closing-tag-location": ["error", {"location": "tag-aligned"}],
39+
"react/jsx-tag-spacing": ["error", {
40+
"closingSlash": "never",
41+
"beforeSelfClosing": "always",
42+
"afterOpening": "never",
43+
"beforeClosing": "never"
44+
}],
45+
"react/button-has-type": "error",
46+
"react/void-dom-elements-no-children": "error",
47+
// "react/destructuring-assignment": ["error", "always"]
48+
"react/jsx-boolean-value": ["error", "never"],
49+
"react/jsx-closing-bracket-location": ["error"]
3950
},
4051
"overrides": [
4152
{

frontend/src/components/client/contract/SingleContractIcon.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export const SingleContractIcon = ({ contract, contracts, style, tooltip, ...pro
3939
fa={fa}
4040
style={{marginRight: 8, ...ownStyle, ...style}}
4141
title={tooltip || t(globalTooltip)}
42-
{...props} />
42+
{...props}
43+
/>
4344
);
4445
};

frontend/src/components/consultant/controls/ConsultantLinkWithModal.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ export const ConsultantLinkWithModal = ({ consultant, showType }: ConsultantLink
4444
size={1}
4545
style={{marginLeft: 8, color: 'grey', visibility: hover ? 'unset' : 'hidden'}}
4646
onClick={() => setModal(true)}
47-
fa="fa fa-external-link-alt" />
47+
fa="fa fa-external-link-alt"
48+
/>
4849

4950
{modal && (
5051
<ConsultantModal
@@ -54,7 +55,8 @@ export const ConsultantLinkWithModal = ({ consultant, showType }: ConsultantLink
5455
setModal(false);
5556
setHover(false);
5657
}}
57-
onConfirm={(c: ConsultantModel) => dispatch(saveConsultant(c) as any)} />
58+
onConfirm={(c: ConsultantModel) => dispatch(saveConsultant(c) as any)}
59+
/>
5860
)}
5961
</div>
6062
);

frontend/src/components/home/measurements/client/ClientsAndProjectsEvolutionChart.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ export const ClientsAndProjectsEvolutionChart = ({ data }: ClientsAndProjectsEvo
1212
width={500}
1313
height={300}
1414
margin={{top: 10, right: 30, left: 0, bottom: 0,}}
15-
data={data}>
15+
data={data}
16+
>
1617
<XAxis dataKey="month" />
1718
<YAxis allowDecimals={false} />
1819
<Tooltip />

frontend/src/components/pages/user/LogoutButton.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ export const LogoutButton = () => {
2323
return (
2424
<Button
2525
variant="danger"
26-
onClick={logout}>
26+
onClick={logout}
27+
>
2728
<Icon className="tst-logout" fa="fab fa-google" size={1} style={{paddingRight: 8}} />
2829
{t('user.logout')}
2930
</Button>

frontend/src/components/pages/user/UserSettings.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ export const UserSettings = () => {
1717
<NumericInput
1818
label={'Aantal records per pagina tonen'}
1919
value={listSize}
20-
onChange={value => dispatch({ type: ACTION_TYPES.APP_SETTINGS_UPDATED, payload: { listSize: value } })} />
20+
onChange={value => dispatch({ type: ACTION_TYPES.APP_SETTINGS_UPDATED, payload: { listSize: value } })}
21+
/>
2122
</div>
2223
</div>
2324
);

frontend/src/components/project/project-month-list/closed-list/badges/InboundBadge.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,13 @@ export const InboundBadge = ({pending, totals}: TimesheetBadgeProps) => {
2626
</i>
2727
</Tooltip>
2828

29-
<Tooltip
30-
title={totals.inboundValidated && `<b>${t('projectMonth.inboundValidated')}</b><br>${totals.inboundValidated}`}>
29+
<Tooltip title={totals.inboundValidated && `<b>${t('projectMonth.inboundValidated')}</b><br>${totals.inboundValidated}`}>
3130
<i className="fa fa-check fa-1x">
3231
<span>{totals.inboundValidatedCount}</span>
3332
</i>
3433
</Tooltip>
3534

36-
<Tooltip
37-
title={totals.inboundPaid && `<b>${t('projectMonth.inboundPaid')}</b><br>${totals.inboundPaid}`}>
35+
<Tooltip title={totals.inboundPaid && `<b>${t('projectMonth.inboundPaid')}</b><br>${totals.inboundPaid}`}>
3836
<i className="fa fa-coins fa-1x">
3937
<span>{totals.inboundPaidCount}</span>
4038
</i>

frontend/src/components/users/ClaimsSelect.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const ClaimsSelect = ({ value, onChange, ...props }: ClaimsSelectProps) =
1111
value={value}
1212
onChange={onChange}
1313
options={Object.values(Claim)}
14-
{...props} />
14+
{...props}
15+
/>
1516
);
1617
};

0 commit comments

Comments
 (0)