style: fix linting issues met Prettier
This commit is contained in:
		
							parent
							
								
									87366b2821
								
							
						
					
					
						commit
						899af4dec5
					
				
					 20 changed files with 117 additions and 118 deletions
				
			
		|  | @ -11,10 +11,10 @@ import { | |||
|     updateClassJoinRequestStatus, | ||||
| } from '../services/teachers.js'; | ||||
| import { requireFields } from './error-helper.js'; | ||||
| import {TeacherDTO} from "dwengo-1-common/src/interfaces/teacher"; | ||||
| import {ClassDTO} from "dwengo-1-common/src/interfaces/class"; | ||||
| import {StudentDTO} from "dwengo-1-common/src/interfaces/student"; | ||||
| import {QuestionDTO, QuestionId} from "dwengo-1-common/src/interfaces/question"; | ||||
| import { TeacherDTO } from 'dwengo-1-common/src/interfaces/teacher'; | ||||
| import { ClassDTO } from 'dwengo-1-common/src/interfaces/class'; | ||||
| import { StudentDTO } from 'dwengo-1-common/src/interfaces/student'; | ||||
| import { QuestionDTO, QuestionId } from 'dwengo-1-common/src/interfaces/question'; | ||||
| 
 | ||||
| export async function getAllTeachersHandler(req: Request, res: Response): Promise<void> { | ||||
|     const full = req.query.full === 'true'; | ||||
|  |  | |||
|  | @ -1,4 +1,4 @@ | |||
| import {Theme} from "dwengo-1-common/src/interfaces/theme"; | ||||
| import { Theme } from 'dwengo-1-common/src/interfaces/theme'; | ||||
| 
 | ||||
| export const themes: Theme[] = [ | ||||
|     { | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| import { Question } from '../entities/questions/question.entity.js'; | ||||
| import { mapToStudentDTO } from './student.js'; | ||||
| import { QuestionDTO, QuestionId } from 'dwengo-1-common/src/interfaces/question'; | ||||
| import {LearningObjectIdentifier} from "../entities/content/learning-object-identifier"; | ||||
| import { LearningObjectIdentifier } from '../entities/content/learning-object-identifier'; | ||||
| 
 | ||||
| function getLearningObjectIdentifier(question: Question): LearningObjectIdentifier { | ||||
|     return { | ||||
|  |  | |||
|  | @ -3,8 +3,7 @@ import { ClassJoinRequest, ClassJoinRequestStatus } from '../entities/classes/cl | |||
| import { getClassJoinRequestRepository } from '../data/repositories.js'; | ||||
| import { Student } from '../entities/users/student.entity.js'; | ||||
| import { Class } from '../entities/classes/class.entity.js'; | ||||
| import {ClassJoinRequestDTO} from "dwengo-1-common/src/interfaces/class-join-request"; | ||||
| 
 | ||||
| import { ClassJoinRequestDTO } from 'dwengo-1-common/src/interfaces/class-join-request'; | ||||
| 
 | ||||
| export function mapToStudentRequestDTO(request: ClassJoinRequest): ClassJoinRequestDTO { | ||||
|     return { | ||||
|  |  | |||
|  | @ -1,13 +1,13 @@ | |||
| import { getAnswerRepository, getQuestionRepository } from '../data/repositories.js'; | ||||
| import {mapToQuestionDTO, mapToQuestionDTOId } from '../interfaces/question.js'; | ||||
| import { mapToQuestionDTO, mapToQuestionDTOId } from '../interfaces/question.js'; | ||||
| import { Question } from '../entities/questions/question.entity.js'; | ||||
| import { Answer } from '../entities/questions/answer.entity.js'; | ||||
| import {mapToAnswerDTO, mapToAnswerDTOId} from '../interfaces/answer.js'; | ||||
| import { mapToAnswerDTO, mapToAnswerDTOId } from '../interfaces/answer.js'; | ||||
| import { QuestionRepository } from '../data/questions/question-repository.js'; | ||||
| import { LearningObjectIdentifier } from '../entities/content/learning-object-identifier.js'; | ||||
| import { mapToStudent } from '../interfaces/student.js'; | ||||
| import {QuestionDTO, QuestionId} from "dwengo-1-common/src/interfaces/question"; | ||||
| import {AnswerDTO, AnswerId} from "dwengo-1-common/src/interfaces/answer"; | ||||
| import { QuestionDTO, QuestionId } from 'dwengo-1-common/src/interfaces/question'; | ||||
| import { AnswerDTO, AnswerId } from 'dwengo-1-common/src/interfaces/answer'; | ||||
| 
 | ||||
| export async function getAllQuestions(id: LearningObjectIdentifier, full: boolean): Promise<QuestionDTO[] | QuestionId[]> { | ||||
|     const questionRepository: QuestionRepository = getQuestionRepository(); | ||||
|  |  | |||
		Reference in a new issue
	
	 Lint Action
						Lint Action