style: fix linting issues met ESLint

This commit is contained in:
Lint Action 2025-03-13 17:45:28 +00:00
parent b5390258e3
commit e78849f568
21 changed files with 64 additions and 116 deletions

View file

@ -13,15 +13,11 @@ import { Language } from '../content/language.js';
import { AssignmentRepository } from '../../data/assignments/assignment-repository.js';
@Entity({
repository: () => {
return AssignmentRepository;
},
repository: () => AssignmentRepository,
})
export class Assignment {
@ManyToOne({
entity: () => {
return Class;
},
entity: () => Class,
primary: true,
})
within!: Class;
@ -39,16 +35,12 @@ export class Assignment {
learningPathHruid!: string;
@Enum({
items: () => {
return Language;
},
items: () => Language,
})
learningPathLanguage!: Language;
@OneToMany({
entity: () => {
return Group;
},
entity: () => Group,
mappedBy: 'assignment',
})
groups!: Group[];

View file

@ -4,9 +4,7 @@ import { Student } from '../users/student.entity.js';
import { GroupRepository } from '../../data/assignments/group-repository.js';
@Entity({
repository: () => {
return GroupRepository;
},
repository: () => GroupRepository,
})
export class Group {
@ManyToOne({

View file

@ -4,9 +4,7 @@ import { Class } from './class.entity.js';
import { ClassJoinRequestRepository } from '../../data/classes/class-join-request-repository.js';
@Entity({
repository: () => {
return ClassJoinRequestRepository;
},
repository: () => ClassJoinRequestRepository,
})
export class ClassJoinRequest {
@ManyToOne({

View file

@ -11,9 +11,7 @@ import { Student } from '../users/student.entity.js';
import { ClassRepository } from '../../data/classes/class-repository.js';
@Entity({
repository: () => {
return ClassRepository;
},
repository: () => ClassRepository,
})
export class Class {
@PrimaryKey()

View file

@ -3,15 +3,11 @@ import { LearningObject } from './learning-object.entity.js';
import { AttachmentRepository } from '../../data/content/attachment-repository.js';
@Entity({
repository: () => {
return AttachmentRepository;
},
repository: () => AttachmentRepository,
})
export class Attachment {
@ManyToOne({
entity: () => {
return LearningObject;
},
entity: () => LearningObject,
primary: true,
})
learningObject!: LearningObject;