Skip to content

Commit 409f95e

Browse files
committedAug 19, 2015
1 parent fb6332d commit 409f95e

File tree

6 files changed

+13
-18
lines changed

6 files changed

+13
-18
lines changed
 

‎.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ charset = utf-8
77
trim_trailing_whitespace = true
88
insert_final_newline = true
99

10-
[package.json]
10+
[{package.json,*.yml}]
1111
indent_style = space
1212
indent_size = 2
1313

‎.jshintrc

-13
This file was deleted.

‎benchmark.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* globals set bench */
2+
'use strict';
13
var chalk = require('./');
24

35
suite('chalk', function () {

‎index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function build(_styles) {
4444
builder.enabled = this.enabled;
4545
// __proto__ is used because we must return a function, but there is
4646
// no way to create a function with a different prototype.
47-
/*eslint no-proto: 0 */
47+
/* eslint-disable no-proto */
4848
builder.__proto__ = proto;
4949

5050
return builder;

‎package.json

+9-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"node": ">=0.10.0"
1414
},
1515
"scripts": {
16-
"test": "mocha",
16+
"test": "xo && mocha",
1717
"bench": "matcha benchmark.js",
1818
"coverage": "nyc npm test && nyc report",
1919
"coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls"
@@ -58,6 +58,13 @@
5858
"nyc": "^3.0.0",
5959
"require-uncached": "^1.0.2",
6060
"resolve-from": "^1.0.0",
61-
"semver": "^4.3.3"
61+
"semver": "^4.3.3",
62+
"xo": "*"
63+
},
64+
"xo": {
65+
"envs": [
66+
"node",
67+
"mocha"
68+
]
6269
}
6370
}

‎test.js

-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ describe('chalk on windows', function () {
119119
var chalkCtx = requireUncached('./');
120120
assert.equal(chalkCtx.blue.dim('foo'), '\u001b[94m\u001b[2mfoo\u001b[22m\u001b[39m');
121121
});
122-
123122
});
124123

125124
describe('chalk.enabled', function () {

0 commit comments

Comments
 (0)
Please sign in to comment.