style: fix linting issues met ESLint
This commit is contained in:
		
							parent
							
								
									a30c4d0d32
								
							
						
					
					
						commit
						aa1a85e64e
					
				
					 24 changed files with 76 additions and 90 deletions
				
			
		|  | @ -4,7 +4,7 @@ import {LearningPathNode} from "../../../src/entities/content/learning-path-node | |||
| import {LearningPath} from "../../../src/entities/content/learning-path.entity"; | ||||
| 
 | ||||
| export function createLearningPathTransition(node: LearningPathNode, transitionNumber: number, condition: string | null, to: LearningPathNode) { | ||||
|     let trans = new LearningPathTransition(); | ||||
|     const trans = new LearningPathTransition(); | ||||
|     trans.node = node; | ||||
|     trans.transitionNumber = transitionNumber; | ||||
|     trans.condition = condition || "true"; | ||||
|  | @ -20,7 +20,7 @@ export function createLearningPathNode( | |||
|     language: Language, | ||||
|     startNode: boolean | ||||
| ) { | ||||
|     let node = new LearningPathNode(); | ||||
|     const node = new LearningPathNode(); | ||||
|     node.learningPath = learningPath; | ||||
|     node.nodeNumber = nodeNumber; | ||||
|     node.learningObjectHruid = learningObjectHruid; | ||||
|  |  | |||
|  | @ -5,7 +5,7 @@ import {createLearningPathNode, createLearningPathTransition} from "./learning-p | |||
| import {LearningPathNode} from "../../../src/entities/content/learning-path-node.entity"; | ||||
| 
 | ||||
| function createNodes(learningPath: LearningPath): LearningPathNode[] { | ||||
|     let nodes = [ | ||||
|     const nodes = [ | ||||
|         createLearningPathNode(learningPath, 0, "u_pn_werkingnotebooks", 3, Language.Dutch, true), | ||||
|         createLearningPathNode(learningPath, 1, "pn_werkingnotebooks2", 3, Language.Dutch, false), | ||||
|         createLearningPathNode(learningPath, 2, "pn_werkingnotebooks3", 3, Language.Dutch, false), | ||||
|  |  | |||
		Reference in a new issue
	
	 Lint Action
						Lint Action