mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Upgrade to latest for all linting deps (#4755)
* Upgrade to eslint latest Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fix OOM error Signed-off-by: Sebastian Malton <sebastian@malton.name> * resolve PR comments Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
2ad78c2a86
commit
38790eb886
35 files changed
+284
-470
No files matched your search
@@ -249,8 +249,7 @@ export class MonacoEditor extends React.Component<MonacoEditorProps> {
|
||||
this.editor?.focus();
|
||||
}
|
||||
|
||||
@action
|
||||
validate = (value = this.getValue()) => {
|
||||
validate = action((value = this.getValue()) => {
|
||||
const validators: MonacoValidator[] = [
|
||||
monacoValidators[this.props.language], // parsing syntax check
|
||||
].filter(Boolean);
|
||||
@@ -262,7 +261,7 @@ export class MonacoEditor extends React.Component<MonacoEditorProps> {
|
||||
this.props.onError?.(error); // emit error outside
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
// avoid excessive validations during typing
|
||||
validateLazy = debounce(this.validate, 250);
|
||||
|
||||
Reference in new issue
Block a user