style: fix linting issues met ESLint
This commit is contained in:
		
							parent
							
								
									ccacc69ed8
								
							
						
					
					
						commit
						e58835aa17
					
				
					 5 changed files with 9 additions and 11 deletions
				
			
		|  | @ -8,9 +8,7 @@ import { TeacherInvitationRepository } from '../../data/classes/teacher-invitati | ||||||
|  */ |  */ | ||||||
| @Entity({ repository: () => TeacherInvitationRepository }) | @Entity({ repository: () => TeacherInvitationRepository }) | ||||||
| @Entity({ | @Entity({ | ||||||
|     repository: () => { |     repository: () => TeacherInvitationRepository, | ||||||
|         return TeacherInvitationRepository; |  | ||||||
|     }, |  | ||||||
| }) | }) | ||||||
| export class TeacherInvitation { | export class TeacherInvitation { | ||||||
|     @ManyToOne({ |     @ManyToOne({ | ||||||
|  |  | ||||||
|  | @ -25,7 +25,7 @@ export class SqliteAutoincrementSubscriber implements EventSubscriber { | ||||||
|             return; // If there is not a composite primary key, autoincrement works fine with SQLite anyway.
 |             return; // If there is not a composite primary key, autoincrement works fine with SQLite anyway.
 | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         for (let prop of Object.values(args.meta.properties)) { |         for (const prop of Object.values(args.meta.properties)) { | ||||||
|             const property = prop as EntityProperty<T>; |             const property = prop as EntityProperty<T>; | ||||||
|             if (property.primary && property.autoincrement && !(args.entity as Record<string, any>)[property.name]) { |             if (property.primary && property.autoincrement && !(args.entity as Record<string, any>)[property.name]) { | ||||||
|                 // Obtain and increment sequence number of this entity.
 |                 // Obtain and increment sequence number of this entity.
 | ||||||
|  |  | ||||||
|  | @ -72,8 +72,8 @@ export function makeTestLearningPaths( | ||||||
|     learningPathNode05.version = 1; |     learningPathNode05.version = 1; | ||||||
| 
 | 
 | ||||||
|     const nodes01: Array<LearningPathNode> = [ |     const nodes01: Array<LearningPathNode> = [ | ||||||
|         // learningPathNode01,
 |         // LearningPathNode01,
 | ||||||
|         // learningPathNode02,
 |         // LearningPathNode02,
 | ||||||
|     ]; |     ]; | ||||||
|     const learningPath01 = em.create(LearningPath, { |     const learningPath01 = em.create(LearningPath, { | ||||||
|         hruid: 'id01', |         hruid: 'id01', | ||||||
|  | @ -86,9 +86,9 @@ export function makeTestLearningPaths( | ||||||
|     }); |     }); | ||||||
| 
 | 
 | ||||||
|     const nodes02: Array<LearningPathNode> = [ |     const nodes02: Array<LearningPathNode> = [ | ||||||
|         // learningPathNode03,
 |         // LearningPathNode03,
 | ||||||
|         // learningPathNode04,
 |         // LearningPathNode04,
 | ||||||
|         // learningPathNode05,
 |         // LearningPathNode05,
 | ||||||
|     ]; |     ]; | ||||||
|     const learningPath02 = em.create(LearningPath, { |     const learningPath02 = em.create(LearningPath, { | ||||||
|         hruid: 'id02', |         hruid: 'id02', | ||||||
|  |  | ||||||
|  | @ -40,7 +40,7 @@ export function makeTestStudents( | ||||||
|         lastName: 'Morisson', |         lastName: 'Morisson', | ||||||
|     }); |     }); | ||||||
| 
 | 
 | ||||||
|     // do not use for any tests, gets deleted in a unit test
 |     // Do not use for any tests, gets deleted in a unit test
 | ||||||
|     const student07 = em.create(Student, { |     const student07 = em.create(Student, { | ||||||
|         username: 'Nirvana', |         username: 'Nirvana', | ||||||
|         firstName: 'Kurt', |         firstName: 'Kurt', | ||||||
|  |  | ||||||
|  | @ -22,7 +22,7 @@ export function makeTestTeachers( | ||||||
|         lastName: 'Lewis', |         lastName: 'Lewis', | ||||||
|     }); |     }); | ||||||
| 
 | 
 | ||||||
|     // should not be used, gets deleted in a unit test
 |     // Should not be used, gets deleted in a unit test
 | ||||||
|     const teacher04 = em.create(Teacher, { |     const teacher04 = em.create(Teacher, { | ||||||
|         username: 'ZesdeMetaal', |         username: 'ZesdeMetaal', | ||||||
|         firstName: 'Wannes', |         firstName: 'Wannes', | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Lint Action
						Lint Action