src/document.js
Document
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
export default class Document extends EventEmitter {
constructor(model, properties, options) {
super()
properties = properties || {};
Function createClass
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static createClass (model) {
class DocumentModel extends Document {
constructor(properties) {
super(model, properties);
}
Function save
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
save(callback) {
var hooks = this._model.schema.hooks;
var self = this;
return new Promise(function(resolve, reject){
hooks.execPre('validate', self, error => {
Parsing error: 'import' and 'export' may appear only with 'sourceType: module' Open
Open
import { EventEmitter } from 'events';
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/