fix: Zet arrow-body-style naar as-needed

Co-authored-by: Gerald Schmittinger <gerald.schmittinger@ugent.be>
This commit is contained in:
Tibo De Peuter 2025-03-06 14:19:42 +01:00
parent a240e31d6e
commit 96d6507073
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
2 changed files with 4 additions and 18 deletions

View file

@ -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[];
} }

View file

@ -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',