Skip to content

Commit 676cf02

Browse files
committed
Fix eslint one-line disabling.
It was my fault adding wrong disabling syntax. This line ```js /* eslint no-unused-vars: 0 object-shorthand: 0 */ ``` spreads out on the whole file regardless where it is placed.
1 parent fecc2dc commit 676cf02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ButtonInput.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ function valueValidation({children, value}, propName, componentName) {
1212

1313
class ButtonInput extends InputBase {
1414
renderFormGroup(children) {
15-
let {bsStyle, value, ...other} = this.props; /* eslint no-unused-vars: 0 object-shorthand: 0 */
15+
let {bsStyle, value, ...other} = this.props; // eslint-disable-line object-shorthand, no-unused-vars
1616
return <FormGroup {...other}>{children}</FormGroup>;
1717
}
1818

1919
renderInput() {
20-
let {children, value, ...other} = this.props;
20+
let {children, value, ...other} = this.props; // eslint-disable-line object-shorthand
2121
let val = children ? children : value;
2222
return <Button {...other} componentClass="input" ref="input" key="input" value={val} />;
2323
}

0 commit comments

Comments
 (0)