Skip to content

Commit ab4f1af

Browse files
authored
Merge pull request #219 from standard/object-shorthand
Use object shorthand for properties
2 parents f2f766e + 7576c9e commit ab4f1af

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function Linter (opts) {
4343

4444
this.eslintConfig = Object.assign({
4545
cache: true,
46-
cacheLocation: cacheLocation,
46+
cacheLocation,
4747
envs: [],
4848
fix: false,
4949
globals: [],

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,8 @@
6161
},
6262
"scripts": {
6363
"test": "standard && tape test/clone.js test/api.js"
64+
},
65+
"engines": {
66+
"node": ">=8.10"
6467
}
6568
}

test/api.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
var eslint = require('eslint')
22
var Linter = require('../').linter
3+
var path = require('path')
34
var test = require('tape')
45

56
function getStandard () {
67
return new Linter({
78
cmd: 'pocketlint',
89
version: '0.0.0',
9-
eslint: eslint,
10+
eslint,
1011
eslintConfig: require('../tmp/standard/options').eslintConfig
1112
})
1213
}
1314

1415
test('api: lintFiles', function (t) {
1516
t.plan(3)
1617
var standard = getStandard()
17-
standard.lintFiles([], { cwd: '../bin' }, function (err, result) {
18+
standard.lintFiles([], { cwd: path.join(__dirname, '../bin') }, function (err, result) {
1819
t.error(err, 'no error while linting')
1920
t.equal(typeof result, 'object', 'result is an object')
2021
t.equal(result.errorCount, 0)

test/lib/standard-cmd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var eslint = require('eslint')
44
var opts = {
55
cmd: 'pocketlint',
66
version: '0.0.0',
7-
eslint: eslint,
7+
eslint,
88
eslintConfig: {
99
configFile: path.join(__dirname, 'standard.json'),
1010
useEslintrc: false

0 commit comments

Comments
 (0)