Skip to content

Commit 915bbf5

Browse files
Tom KirkpatrickTom Kirkpatrick
authored andcommitted
chore: update to latest eslint
1 parent d9195a7 commit 915bbf5

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

lib/calculated.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ module.exports = (Model, options) => {
6161

6262
return Promise.map(Object.keys(options.properties), property => {
6363
const config = getPropertyConfig(options.properties[property])
64-
const callback = config.callback
6564
const action = ctx.isNewInstance ? 'Calculating' : 'Recalculating'
65+
const { callback } = config
6666

6767
if (!callback) {
6868
debug('Callback not defined for property %s', property)

lib/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
'use strict'
2+
13
const deprecate = require('depd')('loopback-ds-calculated-mixin')
24
const calculated = require('./calculated')
35

46
module.exports = function mixin(app) {
5-
'use strict'
67
app.loopback.modelBuilder.mixins.define = deprecate.function(app.loopback.modelBuilder.mixins.define,
78
'app.modelBuilder.mixins.define: Use mixinSources instead')
89
app.loopback.modelBuilder.mixins.define('Calculated', calculated)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"conventional-commit-types": "^2.1.0",
3636
"coveralls": "^2.13.0",
3737
"dirty-chai": "^1.2.2",
38-
"eslint-config-fullcube": "^2.0.0",
38+
"eslint-config-fullcube": "^2.0.2",
3939
"loopback": "^3.6.0",
4040
"mocha": "latest",
4141
"mocha-sinon": "latest",

test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
const utils = require('loopback-datasource-juggler/lib/utils')
22
const loopback = require('loopback')
3-
43
const chai = require('chai')
5-
const expect = chai.expect
4+
5+
const { expect } = chai
66

77
chai.use(require('chai-datetime'))
88
chai.use(require('dirty-chai'))

0 commit comments

Comments
 (0)