Skip to content

Commit 9b010a0

Browse files
committedAug 30, 2015
add XO
1 parent f287438 commit 9b010a0

File tree

4 files changed

+13
-18
lines changed

4 files changed

+13
-18
lines changed
 

‎.jshintrc

-13
This file was deleted.

‎bench.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* global bench */
12
'use strict';
23
var fs = require('fs');
34
var rimraf = require('rimraf');

‎package.json

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "globby",
33
"version": "2.1.0",
4-
"description": "Extends `glob` with support for multiple patterns",
4+
"description": "Extends `glob` with support for multiple patterns and exposes a Promise API",
55
"license": "MIT",
66
"repository": "sindresorhus/globby",
77
"author": {
@@ -14,7 +14,7 @@
1414
},
1515
"scripts": {
1616
"bench": "npm update globby glob-stream && matcha bench.js",
17-
"test": "mocha"
17+
"test": "xo && mocha"
1818
},
1919
"files": [
2020
"index.js"
@@ -64,6 +64,13 @@
6464
"globby": "sindresorhus/globby#master",
6565
"matcha": "^0.6.0",
6666
"mocha": "*",
67-
"rimraf": "^2.2.8"
67+
"rimraf": "^2.2.8",
68+
"xo": "*"
69+
},
70+
"xo": {
71+
"envs": [
72+
"node",
73+
"mocha"
74+
]
6875
}
6976
}

‎test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ it('should glob - sync', function () {
4848

4949
it('should return [] for all negative patterns - sync', function () {
5050
assert.deepEqual(globby.sync(['!a.tmp', '!b.tmp']), []);
51-
})
51+
});
5252

5353
it('should return [] for all negative patterns - async', function () {
5454
return globby(['!a.tmp', '!b.tmp']).then(function (paths) {
5555
assert.deepEqual(paths, []);
5656
});
57-
})
57+
});
5858

5959
it('cwd option', function () {
6060
process.chdir('tmp');

0 commit comments

Comments
 (0)
Please sign in to comment.