style: fix linting issues met ESLint
This commit is contained in:
		
							parent
							
								
									b5390258e3
								
							
						
					
					
						commit
						e78849f568
					
				
					 21 changed files with 64 additions and 116 deletions
				
			
		|  | @ -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[]; | ||||
|  |  | |||
|  | @ -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({ | ||||
|  |  | |||
|  | @ -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({ | ||||
|  |  | |||
|  | @ -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() | ||||
|  |  | |||
|  | @ -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; | ||||
|  |  | |||
		Reference in a new issue
	
	 Lint Action
						Lint Action