Skip to content

Commit

Permalink
add XO
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Aug 24, 2015
1 parent 77fd627 commit 8265d04
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
12 changes: 0 additions & 12 deletions .jshintrc

This file was deleted.

5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
'use strict';
var ansiRegex = require('ansi-regex');
var re = new RegExp(ansiRegex().source); // remove the `g` flag

// remove the `g` flag
var re = new RegExp(ansiRegex().source);

module.exports = re.test.bind(re);
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"node": ">=0.10.0"
},
"scripts": {
"test": "node test.js"
"test": "xo && node test.js"
},
"files": [
"index.js"
Expand Down Expand Up @@ -51,6 +51,7 @@
"ansi-regex": "^2.0.0"
},
"devDependencies": {
"ava": "0.0.4"
"ava": "0.0.4",
"xo": "*"
}
}

0 comments on commit 8265d04

Please sign in to comment.