Skip to content

Commit 0912cff

Browse files
Tom KirkpatrickTom Kirkpatrick
authored andcommitted
chore: update to latest eslint
1 parent 2989348 commit 0912cff

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

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-resultset-limit-mixin')
24
const resultsetLimit = require('./resultset-limit')
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('ResultsetLimit', resultsetLimit)

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"condition-circle": "^1.5.0",
4040
"conventional-commit-types": "^2.1.0",
4141
"coveralls": "^2.13.0",
42-
"eslint": "^3.19.0",
4342
"eslint-config-fullcube": "^2.0.0",
4443
"loopback": "^3.6.0",
4544
"loopback-boot": "^2.24.0",

test/fixtures/simple-app/server/server.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const loopback = require('loopback')
22
const boot = require('loopback-boot')
33
const explorer = require('loopback-component-explorer')
44

5-
const app = module.exports = loopback()
5+
const app = loopback()
66

77
app.use('/api', loopback.rest())
88

@@ -30,3 +30,5 @@ boot(app, __dirname, function(err) {
3030
app.start()
3131
}
3232
})
33+
34+
module.exports = app

test/test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
const TestDataBuilder = require('loopback-testing').TestDataBuilder
2-
const ref = TestDataBuilder.ref
31
const lt = require('loopback-testing')
42
const path = require('path')
53
const chai = require('chai')
6-
const expect = chai.expect
4+
5+
const { TestDataBuilder, TestDataBuilder: { ref } } = lt
6+
const { expect } = chai
77

88
const SIMPLE_APP = path.join(__dirname, 'fixtures', 'simple-app')
99
const app = require(path.join(SIMPLE_APP, 'server', 'server.js'))

0 commit comments

Comments
 (0)