fix: Zet arrow-body-style naar as-needed
				
					
				
			Co-authored-by: Gerald Schmittinger <gerald.schmittinger@ugent.be>
This commit is contained in:
		
							parent
							
								
									a240e31d6e
								
							
						
					
					
						commit
						96d6507073
					
				
					 2 changed files with 4 additions and 18 deletions
				
			
		|  | @ -12,12 +12,7 @@ import { Language } from '../content/language.js'; | ||||||
| 
 | 
 | ||||||
| @Entity() | @Entity() | ||||||
| export class Assignment { | export class Assignment { | ||||||
|     @ManyToOne({ |     @ManyToOne({ entity: () => Class, primary: true }) | ||||||
|         entity: () => { |  | ||||||
|             return Class; |  | ||||||
|         }, |  | ||||||
|         primary: true, |  | ||||||
|     }) |  | ||||||
|     within!: Class; |     within!: Class; | ||||||
| 
 | 
 | ||||||
|     @PrimaryKey({ type: 'number' }) |     @PrimaryKey({ type: 'number' }) | ||||||
|  | @ -32,18 +27,9 @@ export class Assignment { | ||||||
|     @Property({ type: 'string' }) |     @Property({ type: 'string' }) | ||||||
|     learningPathHruid!: string; |     learningPathHruid!: string; | ||||||
| 
 | 
 | ||||||
|     @Enum({ |     @Enum({ items: () => Language }) | ||||||
|         items: () => { |  | ||||||
|             return Language; |  | ||||||
|         }, |  | ||||||
|     }) |  | ||||||
|     learningPathLanguage!: Language; |     learningPathLanguage!: Language; | ||||||
| 
 | 
 | ||||||
|     @OneToMany({ |     @OneToMany({ entity: () => Group, mappedBy: 'assignment' }) | ||||||
|         entity: () => { |  | ||||||
|             return Group; |  | ||||||
|         }, |  | ||||||
|         mappedBy: 'assignment', |  | ||||||
|     }) |  | ||||||
|     groups!: Group[]; |     groups!: Group[]; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -44,7 +44,7 @@ export default [ | ||||||
|             'no-use-before-define': 'error', |             'no-use-before-define': 'error', | ||||||
|             'no-useless-assignment': 'error', |             'no-useless-assignment': 'error', | ||||||
| 
 | 
 | ||||||
|             'arrow-body-style': ['warn', 'always'], |             'arrow-body-style': ['warn', 'as-needed'], | ||||||
|             'block-scoped-var': 'warn', |             'block-scoped-var': 'warn', | ||||||
|             camelcase: 'warn', |             camelcase: 'warn', | ||||||
|             'capitalized-comments': 'warn', |             'capitalized-comments': 'warn', | ||||||
|  |  | ||||||
		Reference in a new issue