Skip to content

Commit

Permalink
chore: update to latest eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Kirkpatrick authored and Tom Kirkpatrick committed May 4, 2017
1 parent d9195a7 commit 915bbf5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/calculated.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ module.exports = (Model, options) => {

return Promise.map(Object.keys(options.properties), property => {
const config = getPropertyConfig(options.properties[property])
const callback = config.callback
const action = ctx.isNewInstance ? 'Calculating' : 'Recalculating'
const { callback } = config

if (!callback) {
debug('Callback not defined for property %s', property)
Expand Down
3 changes: 2 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
'use strict'

const deprecate = require('depd')('loopback-ds-calculated-mixin')
const calculated = require('./calculated')

module.exports = function mixin(app) {
'use strict'
app.loopback.modelBuilder.mixins.define = deprecate.function(app.loopback.modelBuilder.mixins.define,
'app.modelBuilder.mixins.define: Use mixinSources instead')
app.loopback.modelBuilder.mixins.define('Calculated', calculated)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"conventional-commit-types": "^2.1.0",
"coveralls": "^2.13.0",
"dirty-chai": "^1.2.2",
"eslint-config-fullcube": "^2.0.0",
"eslint-config-fullcube": "^2.0.2",
"loopback": "^3.6.0",
"mocha": "latest",
"mocha-sinon": "latest",
Expand Down
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const utils = require('loopback-datasource-juggler/lib/utils')
const loopback = require('loopback')

const chai = require('chai')
const expect = chai.expect

const { expect } = chai

chai.use(require('chai-datetime'))
chai.use(require('dirty-chai'))
Expand Down

0 comments on commit 915bbf5

Please sign in to comment.