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()
|
||||
export class Assignment {
|
||||
@ManyToOne({
|
||||
entity: () => {
|
||||
return Class;
|
||||
},
|
||||
primary: true,
|
||||
})
|
||||
@ManyToOne({ entity: () => Class, primary: true })
|
||||
within!: Class;
|
||||
|
||||
@PrimaryKey({ type: 'number' })
|
||||
|
@ -32,18 +27,9 @@ export class Assignment {
|
|||
@Property({ type: 'string' })
|
||||
learningPathHruid!: string;
|
||||
|
||||
@Enum({
|
||||
items: () => {
|
||||
return Language;
|
||||
},
|
||||
})
|
||||
@Enum({ items: () => Language })
|
||||
learningPathLanguage!: Language;
|
||||
|
||||
@OneToMany({
|
||||
entity: () => {
|
||||
return Group;
|
||||
},
|
||||
mappedBy: 'assignment',
|
||||
})
|
||||
@OneToMany({ entity: () => Group, mappedBy: 'assignment' })
|
||||
groups!: Group[];
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@ export default [
|
|||
'no-use-before-define': 'error',
|
||||
'no-useless-assignment': 'error',
|
||||
|
||||
'arrow-body-style': ['warn', 'always'],
|
||||
'arrow-body-style': ['warn', 'as-needed'],
|
||||
'block-scoped-var': 'warn',
|
||||
camelcase: 'warn',
|
||||
'capitalized-comments': 'warn',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue