Skip to content

Commit affea97

Browse files
committed
eslint: no unnecessary curly brace
1 parent 06d3a0c commit affea97

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

frontend/.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
"react/void-dom-elements-no-children": "error",
4747
// "react/destructuring-assignment": ["error", "always"]
4848
"react/jsx-boolean-value": ["error", "never"],
49-
"react/jsx-closing-bracket-location": ["error"]
49+
"react/jsx-closing-bracket-location": ["error"],
50+
"react/jsx-curly-brace-presence": ["error", "never"]
5051
},
5152
"overrides": [
5253
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export const ClientsAndProjectsEvolution = () => {
100100
return (
101101
<Container>
102102
<Row>
103-
<Link to={'/clients'}>
103+
<Link to="/clients">
104104
<h5>
105105
{t('measurements.clientSection.clientsAndProjectsEvolution.title')}
106106
</h5>

frontend/src/components/home/measurements/project/ConsultantContractsList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const ConsultantContractsList = () => {
2222
return (
2323
<Container>
2424
<Row>
25-
<Link to={'/projects'}>
25+
<Link to="/projects">
2626
<h5>{t('measurements.projectSection.consultantContracts.title')}</h5>
2727
</Link>
2828
<Table>

frontend/src/components/pages/login/AnonymousLogin.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ export const AnonymousLogin = ({ onLogin }: AnonymousLoginProps) => {
1313
return (
1414
<>
1515
<h1>Zonder Login</h1>
16-
<StringInput label={'Jouw naam'} value={name} onChange={setName} />
16+
<StringInput label="Jouw naam" value={name} onChange={setName} />
1717
<Button className="btn btn-success tst-login-anonymous" onClick={() => { localStorage.setItem('anonUser', name); onLogin(name); }}>
18-
{'Confac Starten'}
18+
Confac Starten
1919
</Button>
2020
</>
2121
);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const UserSettings = () => {
1515

1616
<div className="col-6">
1717
<NumericInput
18-
label={'Aantal records per pagina tonen'}
18+
label="Aantal records per pagina tonen"
1919
value={listSize}
2020
onChange={value => dispatch({ type: ACTION_TYPES.APP_SETTINGS_UPDATED, payload: { listSize: value } })}
2121
/>

0 commit comments

Comments
 (0)