From ace599b39f8b882f9fc2360add6fb8696a51f5af Mon Sep 17 00:00:00 2001 From: Mihajlo Medjedovic Date: Tue, 19 Mar 2024 10:01:30 +0100 Subject: [PATCH] style: lint --- client/src/app/shared/dc-validator/dc-validator.ts | 10 ++++++++-- .../dc-validator/editors/numericAutocomplete.ts | 13 +++++++------ client/src/environments/_eula.ts | 2 +- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/client/src/app/shared/dc-validator/dc-validator.ts b/client/src/app/shared/dc-validator/dc-validator.ts index af1674f..b87f541 100644 --- a/client/src/app/shared/dc-validator/dc-validator.ts +++ b/client/src/app/shared/dc-validator/dc-validator.ts @@ -55,7 +55,10 @@ export class DcValidator { } registerCustomEditors() { - Handsontable.editors.registerEditor('autocomplete.custom', CustomAutocompleteEditor) + Handsontable.editors.registerEditor( + 'autocomplete.custom', + CustomAutocompleteEditor + ) } getRules(): DcValidation[] { @@ -323,7 +326,10 @@ export class DcValidator { // Because of dynamic cell validation, that will change the type of cell to dropdown // `rules[i].colType` could be different type (eg. numeric). So we check if current cell is dropdown, to call HOT native dropdown validator - if (this.editor === 'autocomplete' || this.editor === 'autocomplete.custom') { + if ( + this.editor === 'autocomplete' || + this.editor === 'autocomplete.custom' + ) { self .getHandsontableValidator('autocomplete') .call(this, value, (valid: boolean) => { diff --git a/client/src/app/shared/dc-validator/editors/numericAutocomplete.ts b/client/src/app/shared/dc-validator/editors/numericAutocomplete.ts index c248dca..20b11df 100644 --- a/client/src/app/shared/dc-validator/editors/numericAutocomplete.ts +++ b/client/src/app/shared/dc-validator/editors/numericAutocomplete.ts @@ -1,13 +1,14 @@ -import Handsontable from "handsontable"; -import Core from "handsontable/core"; +import Handsontable from 'handsontable' +import Core from 'handsontable/core' -export class CustomAutocompleteEditor extends Handsontable.editors.AutocompleteEditor { +export class CustomAutocompleteEditor extends Handsontable.editors + .AutocompleteEditor { constructor(instance: Core) { - super(instance); + super(instance) } createElements() { - super.createElements(); + super.createElements() } // Listbox open @@ -24,4 +25,4 @@ export class CustomAutocompleteEditor extends Handsontable.editors.AutocompleteE isCellNumeric() { return this.cellProperties?.className?.includes('htNumeric') } -} \ No newline at end of file +} diff --git a/client/src/environments/_eula.ts b/client/src/environments/_eula.ts index 3d7cba2..684dea6 100644 --- a/client/src/environments/_eula.ts +++ b/client/src/environments/_eula.ts @@ -18,4 +18,4 @@ In any case, you must not make any such use of this software as to develop softw UNLESS EXPRESSLY AGREED OTHERWISE, 4GL APPS PROVIDES THIS SOFTWARE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, AND IN NO EVENT AND UNDER NO LEGAL THEORY, SHALL 4GL APPS BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM USE OR INABILITY TO USE THIS SOFTWARE. -` \ No newline at end of file +`