Use @typescript-eslint/semi.

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
Panu Horsmalahti committed 2020-11-19 18:12:52 +02:00
1 parent 0b182ccf6f
commit 460dfe4d2b
179 files changed
+556 -554

No files matched your search

+2 -2
View File
@@ -24,7 +24,7 @@ export class FileInput extends React.Component<Props> {
selectFiles = () => {
this.input.click(); // opens system dialog for selecting files
}
};
protected onChange = async (evt: React.ChangeEvent<HTMLInputElement>) => {
const fileList = Array.from(evt.target.files);
@@ -49,7 +49,7 @@ export class FileInput extends React.Component<Props> {
selectedFiles = await Promise.all(readingFiles);
}
this.props.onSelectFiles(...selectedFiles);
}
};
render() {
const { onSelectFiles, readAsText, ...props } = this.props;
+2 -2
View File
@@ -31,7 +31,7 @@ export type InputProps<T = string> = Omit<InputElementProps, "onChange" | "onSub
validators?: InputValidator | InputValidator[];
onChange?(value: T, evt: React.ChangeEvent<InputElement>): void;
onSubmit?(value: T): void;
}
};
interface State {
focused?: boolean;
@@ -59,7 +59,7 @@ export class Input extends React.Component<InputProps, State> {
dirty: !!this.props.dirty,
valid: true,
errors: [],
}
};
setValue(value: string) {
if (value !== this.getValue()) {
@@ -15,25 +15,25 @@ export class SearchInputUrl extends React.Component<Props> {
@observable inputVal = ""; // fix: use empty string to avoid react warnings
@disposeOnUnmount
updateInput = autorun(() => this.inputVal = getSearch())
updateUrl = debounce((val: string) => setSearch(val), 250)
updateInput = autorun(() => this.inputVal = getSearch());
updateUrl = debounce((val: string) => setSearch(val), 250);
setValue = (value: string) => {
this.inputVal = value;
this.updateUrl(value);
}
};
clear = () => {
this.setValue("");
this.updateUrl.flush();
}
};
onChange = (val: string, evt: React.ChangeEvent<any>) => {
this.setValue(val);
if (this.props.onChange) {
this.props.onChange(val, evt);
}
}
};
render() {
const { inputVal } = this;
@@ -40,11 +40,11 @@ export class SearchInput extends React.Component<Props> {
if (this.props.onClear) {
this.props.onClear();
}
}
};
onChange = (val: string, evt: React.ChangeEvent<any>) => {
this.props.onChange(val, evt);
}
};
onKeyDown = (evt: React.KeyboardEvent<any>) => {
if (this.props.onKeyDown) {
@@ -56,7 +56,7 @@ export class SearchInput extends React.Component<Props> {
this.clear();
evt.stopPropagation();
}
}
};
@autobind()
focus(evt: KeyboardEvent) {