ESLint additional rules (#4186)
* Add eslint rule for consistent block padding * Fix padding consistency issues * Eslint test for duplicate imports * Eslint closing bracket location * Fix eslint jsx closing bracket * missed a file * Formatting * Manual overrides for auto * Manual overrides for auto * More minor auto-override manual adjustments
This commit is contained in:
@@ -20,11 +20,12 @@ import { connect } from 'react-redux';
|
||||
import InputText from './input-text';
|
||||
|
||||
class InputTextContainer extends Component {
|
||||
|
||||
render () {
|
||||
return (<InputText
|
||||
{ ...this.props }
|
||||
/>);
|
||||
return (
|
||||
<InputText
|
||||
{ ...this.props }
|
||||
/>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,6 @@ const initState = {
|
||||
};
|
||||
|
||||
export default class InputText extends Component {
|
||||
|
||||
static propTypes = {
|
||||
validationType: PropTypes.string.isRequired,
|
||||
onChange: PropTypes.func.isRequired,
|
||||
@@ -64,7 +63,8 @@ export default class InputText extends Component {
|
||||
disabled={ disabled }
|
||||
errorText={ error }
|
||||
onChange={ this.onChange }
|
||||
onKeyDown={ this.onKeyDown } />
|
||||
onKeyDown={ this.onKeyDown }
|
||||
/>
|
||||
|
||||
{ this.renderLoading() }
|
||||
{ this.renderIsValid() }
|
||||
@@ -146,5 +146,4 @@ export default class InputText extends Component {
|
||||
|
||||
return this.props.onChange(false, value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user