Skip to content

Commit 00696d6

Browse files
committed
Fix eslint issues.
1 parent 6ca5cf3 commit 00696d6

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/components/checkbox-group.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class CheckboxGroup extends React.Component<CheckboxGroupProps, {}> {
7272
}`;
7373

7474
const controls = [] as JSX.Element[];
75-
for(let i = 0; i < options.length; i++) {
75+
for (let i = 0; i < options.length; i++) {
7676
const checkbox = options[i];
7777
const checked = value.indexOf(checkbox.value) !== -1;
7878
const isDisabled = checkbox.disabled || disabled;
@@ -97,7 +97,9 @@ class CheckboxGroup extends React.Component<CheckboxGroupProps, {}> {
9797
<label className="custom-control-label" htmlFor={inputId}>
9898
{checkbox.label}
9999
</label>
100-
{isLast && showErrors ? <ErrorMessages messages={errorMessages} /> : null}
100+
{isLast && showErrors ? (
101+
<ErrorMessages messages={errorMessages} />
102+
) : null}
101103
</div>
102104
);
103105
controls.push(control);

src/components/select.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ class Select extends React.Component<SelectProps, {}> {
6767
const control = (
6868
<SelectControl
6969
{...inputProps}
70-
className={classNames(markAsInvalid ? ['is-invalid', className] : className)}
70+
className={classNames(
71+
markAsInvalid ? ['is-invalid', className] : className,
72+
)}
7173
elementRef={this.props.elementRef}
7274
id={id}
7375
name={name}

0 commit comments

Comments
 (0)