Skip to content

Commit 7a159e4

Browse files
committed
linting: fix spacing
1 parent f43e39f commit 7a159e4

File tree

8 files changed

+10
-8
lines changed

8 files changed

+10
-8
lines changed

frontend/.eslintrc.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"rules": {
66
"semi": ["error", "always"],
77
"keyword-spacing": ["error", { "before": true }],
8-
"space-before-blocks": "error"
8+
"space-before-blocks": "error",
9+
"no-trailing-spaces": "error",
10+
"no-multi-spaces": "error"
911
},
1012
"overrides": [
1113
{

frontend/src/components/client/models/getClientFeature.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ const createFilterByDescription = (filters :FilterValue[]) => {
138138

139139

140140
const getFilterOptions = (config: ClientFeatureBuilderConfig): ClientFilterOption[] => {
141-
return ClientTypes.map(ct => ({
141+
return ClientTypes.map(ct => ({
142142
value: ct,
143143
label: t(`client.clienttypes.${ct}`)
144144
} as ClientFilterOption))

frontend/src/components/consultant/models/ConsultantModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ export interface ConsultantModel {
1414
telephone: string,
1515
audit: IAudit;
1616
active: boolean;
17-
accountingCode: string;
17+
accountingCode: string;
1818
}

frontend/src/components/controls/Icon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export const NotEmailedIcon = ({...props}) => (
122122
{...props}
123123
>
124124
<i className="fas fa-envelope fa-stack-1x" />
125-
<Icon fa="fas fa-ban fa-stack-2x" size={1} title={t('email.notMailed')} color="#CC1100" />
125+
<Icon fa="fas fa-ban fa-stack-2x" size={1} title={t('email.notMailed')} color="#CC1100" />
126126
</ClaimSpan>
127127
);
128128

frontend/src/components/controls/Modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const Modal = (props: ModalProps) => {
5454
<ReactModal.Footer>
5555
<ReactButton onClick={props.onClose} variant="light">{t('close')}</ReactButton>
5656
{props.onConfirm ? (
57-
<ReactButton onClick={onConfirm} variant={props.confirmVariant || 'success'} disabled={props.disableSave}>
57+
<ReactButton onClick={onConfirm} variant={props.confirmVariant || 'success'} disabled={props.disableSave}>
5858
{props.confirmText || t('save')}
5959
</ReactButton>
6060
) : null}

frontend/src/components/hooks/useHover.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useState, useMemo } from 'react';
22

3-
const useHover = () : [boolean, { onMouseOver(): void, onMouseOut(): void}] => {
3+
const useHover = () : [boolean, { onMouseOver(): void, onMouseOut(): void}] => {
44
const [hovered, setHovered] = useState<boolean>(false);
55

66
const eventHandlers = useMemo(() => ({

frontend/src/components/project/models/getProjectFeature.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ const projectListConfig = (config: ProjectFeatureBuilderConfig): IList<FullProje
137137
header: 'project.partner.tariff',
138138
value: p => <ProjectClientTariff projectClient={p.details.partner} />,
139139
sort: (p, p2) => {
140-
if (!p.details.partner || !p2.details.partner)
140+
if (!p.details.partner || !p2.details.partner)
141141
return (p2.details.partner ? 1 : 0) - (p.details.partner ? 1 : 0);
142142

143143
return compareTariffs(getTariffs(p.details.partner), getTariffs(p2.details.partner));

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const TimesheetBadge = ({ pending, totals }: TimesheetBadgeProps) => {
2424
return (
2525
<Tooltip title={`<b>${t('projectMonth.timesheetValidated')}</b><br>` + totals.timesheetPending}>
2626
<span className="badge rounded-pill bg-warning">
27-
<i className="fa fa-clock fa-1x" />
27+
<i className="fa fa-clock fa-1x" />
2828
{t('projectMonth.list.timesheetPending', {timesheetPendingCount: totals.timesheetPendingCount})}
2929
</span>
3030
</Tooltip>

0 commit comments

Comments
 (0)