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 11423e1 commit 9d51315
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
12 changes: 0 additions & 12 deletions .jshintrc

This file was deleted.

15 changes: 13 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": "mocha test/test.js",
"test": "xo && mocha test/test.js",
"view-supported": "node test/viewCodes.js"
},
"files": [
Expand Down Expand Up @@ -52,6 +52,17 @@
"pattern"
],
"devDependencies": {
"mocha": "*"
"mocha": "*",
"xo": "*"
},
"xo": {
"envs": [
"node",
"mocha"
],
"rules": {
"guard-for-in": 0,
"no-loop-func": 0
}
}
}
2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('extended tests', function () {
describe(codeSet, function () {
for (var code in ansiCodes[codeSet]) {
var codeInfo = ansiCodes[codeSet][code];
var skip = !!code.match(/[0-9]$/);
var skip = /[0-9]$/.test(code);
var skipText = skip ? '[SKIP] ' : '';
var ecode = '\u001b' + code;

Expand Down

0 comments on commit 9d51315

Please sign in to comment.