Implemented ESlint and passed down the rules
This commit is contained in:
@@ -1,17 +1,16 @@
|
||||
'use strict'
|
||||
const bookshelf = require('../database/bookshelf').bookshelf
|
||||
const bookshelf = require('../database/bookshelf').bookshelf;
|
||||
|
||||
require('./spell-model')
|
||||
require('./meta-school-model')
|
||||
require('./spell-model');
|
||||
require('./meta-school-model');
|
||||
|
||||
let School = bookshelf.Model.extend({
|
||||
tableName: 'school',
|
||||
spells() {
|
||||
return this.belongsToMany('Spell', 'spell_school')
|
||||
return this.belongsToMany('Spell', 'spell_school');
|
||||
},
|
||||
meta_schools() {
|
||||
return this.belongsTo('MetaSchool', 'meta_school_id')
|
||||
return this.belongsTo('MetaSchool', 'meta_school_id');
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
module.exports = bookshelf.model('School', School)
|
||||
module.exports = bookshelf.model('School', School);
|
||||
Reference in New Issue
Block a user