fix eslint warnigs for core project (#7506)

This commit is contained in:
Denys Vuika
2022-02-17 14:35:33 +00:00
committed by GitHub
parent 5b7f255eec
commit bca5a783ab
246 changed files with 5127 additions and 5065 deletions

View File

@@ -26,13 +26,13 @@ export class FormDefinitionModel extends FormSaveRepresentation {
constructor(id: string, name: any, lastUpdatedByFullName: string, lastUpdated: string, metadata: any) {
super();
this.formRepresentation = {
id: id,
name: name,
id,
name,
description: '',
version: 1,
lastUpdatedBy: 1,
lastUpdatedByFullName: lastUpdatedByFullName,
lastUpdated: lastUpdated,
lastUpdatedByFullName,
lastUpdated,
stencilSetId: 0,
referenceId: null,
formDefinition: {
@@ -47,7 +47,7 @@ export class FormDefinitionModel extends FormSaveRepresentation {
sizeY: 1,
row: -1,
col: -1,
fields: {'1': this.metadataToFields(metadata)}
fields: {1: this.metadataToFields(metadata)}
}],
gridsterForm: false,
javascriptEvents: [],
@@ -64,7 +64,7 @@ export class FormDefinitionModel extends FormSaveRepresentation {
private metadataToFields(metadata: any): any[] {
const fields = [];
if (metadata) {
metadata.forEach(function(property) {
metadata.forEach((property) => {
if (property) {
const field = {
type: 'text',

View File

@@ -100,6 +100,7 @@ export class WidgetVisibilityModel {
}
}
// eslint-disable-next-line no-shadow
export enum WidgetTypeEnum {
field = 'field',
variable = 'variable',