Enable object-shorthand rule (#1500)

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
Panu Horsmalahti authored and GitHub committed 2020-11-24 13:16:35 +02:00
1 parent 2a8cfe5e67
commit ff93760dc4
42 files changed
+69 -66

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ export class FileInput extends React.Component<Props> {
const reader = new FileReader();
reader.onloadend = () => {
resolve({
file: file,
file,
data: reader.result,
error: reader.error ? String(reader.error) : null,
});
+5 -5
View File
@@ -149,7 +149,7 @@ export class Input extends React.Component<InputProps, State> {
this.setState({
validating: false,
valid: !errors.length,
errors: errors,
errors,
});
}
@@ -273,11 +273,11 @@ export class Input extends React.Component<InputProps, State> {
const className = cssNames("Input", this.props.className, {
[`theme ${theme}`]: theme,
focused: focused,
disabled: disabled,
focused,
disabled,
invalid: !valid,
dirty: dirty,
validating: validating,
dirty,
validating,
validatingLine: validating && showValidationLine,
});