style: fix linting issues met ESLint
This commit is contained in:
		
							parent
							
								
									9f975977e0
								
							
						
					
					
						commit
						d5ce82c657
					
				
					 4 changed files with 24 additions and 24 deletions
				
			
		|  | @ -10,31 +10,31 @@ export class AssignmentController extends BaseController { | ||||||
|         super(`class/${classid}/assignments`); |         super(`class/${classid}/assignments`); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     getAll(full = true) { |     async getAll(full = true) { | ||||||
|         return this.get<{ assignments: any[] }>(`/`, { full }); |         return this.get<{ assignments: any[] }>(`/`, { full }); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     getByNumber(num: number) { |     async getByNumber(num: number) { | ||||||
|         return this.get<{ assignment: any }>(`/${num}`); |         return this.get<{ assignment: any }>(`/${num}`); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     createAssignment(data: any) { |     async createAssignment(data: any) { | ||||||
|         return this.post<{ assignment: any }>(`/`, data); |         return this.post<{ assignment: any }>(`/`, data); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     deleteAssignment(num: number) { |     async deleteAssignment(num: number) { | ||||||
|         return this.delete<{ assignment: any }>(`/${num}`); |         return this.delete<{ assignment: any }>(`/${num}`); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     getSubmissions(assignmentNumber: number, full = true) { |     async getSubmissions(assignmentNumber: number, full = true) { | ||||||
|         return this.get<{ submissions: any[] }>(`/${assignmentNumber}/submissions`, { full }); |         return this.get<{ submissions: any[] }>(`/${assignmentNumber}/submissions`, { full }); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     getQuestions(assignmentNumber: number, full = true) { |     async getQuestions(assignmentNumber: number, full = true) { | ||||||
|         return this.get<{ questions: any[] }>(`/${assignmentNumber}/questions`, { full }); |         return this.get<{ questions: any[] }>(`/${assignmentNumber}/questions`, { full }); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     getGroups(assignmentNumber: number, full = true) { |     async getGroups(assignmentNumber: number, full = true) { | ||||||
|         return this.get<{ groups: any[] }>(`/${assignmentNumber}/groups`, { full }); |         return this.get<{ groups: any[] }>(`/${assignmentNumber}/groups`, { full }); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  | @ -10,31 +10,31 @@ export class ClassController extends BaseController { | ||||||
|         super("class"); |         super("class"); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     getAll(full = true) { |     async getAll(full = true) { | ||||||
|         return this.get<{ classes: any[] }>(`/`, { full }); |         return this.get<{ classes: any[] }>(`/`, { full }); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     getById(id: string) { |     async getById(id: string) { | ||||||
|         return this.get<{ class: any }>(`/${id}`); |         return this.get<{ class: any }>(`/${id}`); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     createClass(data: any) { |     async createClass(data: any) { | ||||||
|         return this.post<{ class: any }>(`/`, data); |         return this.post<{ class: any }>(`/`, data); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     deleteClass(id: string) { |     async deleteClass(id: string) { | ||||||
|         return this.delete<{ class: any }>(`/${id}`); |         return this.delete<{ class: any }>(`/${id}`); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     getStudents(id: string, full = true) { |     async getStudents(id: string, full = true) { | ||||||
|         return this.get<{ students: any[] }>(`/${id}/students`, { full }); |         return this.get<{ students: any[] }>(`/${id}/students`, { full }); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     getTeacherInvitations(id: string, full = true) { |     async getTeacherInvitations(id: string, full = true) { | ||||||
|         return this.get<{ invitations: any[] }>(`/${id}/teacher-invitations`, { full }); |         return this.get<{ invitations: any[] }>(`/${id}/teacher-invitations`, { full }); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     getAssignments(id: string, full = true) { |     async getAssignments(id: string, full = true) { | ||||||
|         return this.get<{ assignments: any[] }>(`/${id}/assignments`, { full }); |         return this.get<{ assignments: any[] }>(`/${id}/assignments`, { full }); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  | @ -10,27 +10,27 @@ export class GroupController extends BaseController { | ||||||
|         super(`class/${classid}/assignments/${assignmentNumber}/groups`); |         super(`class/${classid}/assignments/${assignmentNumber}/groups`); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     getAll(full = true) { |     async getAll(full = true) { | ||||||
|         return this.get<{ groups: any[] }>(`/`, { full }); |         return this.get<{ groups: any[] }>(`/`, { full }); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     getByNumber(num: number) { |     async getByNumber(num: number) { | ||||||
|         return this.get<{ group: any }>(`/${num}`); |         return this.get<{ group: any }>(`/${num}`); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     createGroup(data: any) { |     async createGroup(data: any) { | ||||||
|         return this.post<{ group: any }>(`/`, data); |         return this.post<{ group: any }>(`/`, data); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     deleteClass(num: number) { |     async deleteClass(num: number) { | ||||||
|         return this.delete<{ group: any }>(`/${num}`); |         return this.delete<{ group: any }>(`/${num}`); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     getSubmissions(groupNumber: number, full = true) { |     async getSubmissions(groupNumber: number, full = true) { | ||||||
|         return this.get<{ groups: any[] }>(`/${groupNumber}/submissions`, { full }); |         return this.get<{ groups: any[] }>(`/${groupNumber}/submissions`, { full }); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     getQuestions(groupNumber: number, full = true) { |     async getQuestions(groupNumber: number, full = true) { | ||||||
|         return this.get<{ questions: any[] }>(`/${groupNumber}/questions`, { full }); |         return this.get<{ questions: any[] }>(`/${groupNumber}/questions`, { full }); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -5,19 +5,19 @@ export class SubmissionController extends BaseController { | ||||||
|         super(`class/${classid}/assignments/${assignmentNumber}/groups/${groupNumber}`); |         super(`class/${classid}/assignments/${assignmentNumber}/groups/${groupNumber}`); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     getAll(full = true) { |     async getAll(full = true) { | ||||||
|         return this.get<any>(`/`, { full }); |         return this.get<any>(`/`, { full }); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     getByNumber(submissionNumber: number) { |     async getByNumber(submissionNumber: number) { | ||||||
|         return this.get<any>(`/${submissionNumber}`); |         return this.get<any>(`/${submissionNumber}`); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     createSubmission(data: any) { |     async createSubmission(data: any) { | ||||||
|         return this.post<any>(`/`, data); |         return this.post<any>(`/`, data); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     deleteSubmission(submissionNumber: number) { |     async deleteSubmission(submissionNumber: number) { | ||||||
|         return this.delete<any>(`/${submissionNumber}`); |         return this.delete<any>(`/${submissionNumber}`); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Lint Action
						Lint Action