Skip to content

Commit 4ea535b

Browse files
authored
Bump deps and convert to chai (#2)
1 parent d0e3082 commit 4ea535b

File tree

3 files changed

+19
-15
lines changed

3 files changed

+19
-15
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1212
### Removed
1313

1414

15+
## [1.1.0] - 2017-08-02
16+
### Changed
17+
- Bump dependencies
18+
1519
## [1.0.0] - 2017-02-18
1620
- First release

package.json

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "npm-package-json-lint-config-tc",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"description": "npm-package-json-lint shareable config for TC's projects",
55
"keywords": [
66
"lint",
@@ -24,23 +24,21 @@
2424
"main": "index.js",
2525
"scripts": {
2626
"eslint": "eslint *.js --format=node_modules/eslint-formatter-pretty",
27-
"jscs": "jscs *.js",
2827
"jsonlint": "jsonlint *.json",
29-
"lint": "npm run npmpackagejsonlint && npm run eslint && npm run jscs && npm run jsonlint",
28+
"lint": "npm run npmpackagejsonlint && npm run eslint && npm run jsonlint",
3029
"npmpackagejsonlint": "pjl-cli -c .npmpackagejsonlintrc.json",
31-
"test": "mocha test"
30+
"test": "mocha"
3231
},
3332
"devDependencies": {
34-
"eslint": "^3.15.0",
35-
"eslint-config-tc": "^1.4.0",
33+
"chai": "^4.1.0",
34+
"eslint": "^4.3.0",
35+
"eslint-config-tc": "^2.1.0",
3636
"eslint-formatter-pretty": "^1.1.0",
3737
"is-plain-obj": "^1.1.0",
38-
"jscs": "^3.0.7",
3938
"jsonlint": "^1.6.2",
40-
"mocha": "^3.2.0",
41-
"npm-package-json-lint": "^2.0.2",
42-
"should": "^11.2.0",
43-
"temp-write": "^3.1.0"
39+
"mocha": "^3.5.0",
40+
"npm-package-json-lint": "^2.6.0",
41+
"temp-write": "^3.3.0"
4442
},
4543
"peerDependencies": {
4644
"npm-package-json-lint": ">= 2"

test/tests.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
'use strict';
22

3-
const should = require('should');
3+
const chai = require('chai');
44
const isPlainObj = require('is-plain-obj');
55
const config = require('./../index.js');
66
const lint = require('./helper/testHelper.js');
77

8+
const should = chai.should();
9+
810
describe('npm-package-json-lint config tests', () => {
911
context('npm-package-json-lint config object', () => {
1012
it('should be an object', () => {
11-
isPlainObj(config).should.equal(true);
13+
isPlainObj(config).should.be.true;
1214
});
1315
});
1416

1517
context('rules', () => {
1618
it('should be an object', () => {
17-
isPlainObj(config.rules).should.equal(true);
19+
isPlainObj(config.rules).should.be.true;
1820
});
1921
});
2022

@@ -27,7 +29,7 @@ describe('npm-package-json-lint config tests', () => {
2729
const expectedErrorCount = 14;
2830

2931
results.errors.length.should.equal(expectedErrorCount);
30-
results.hasOwnProperty('warnings').should.be.false();
32+
results.hasOwnProperty('warnings').should.be.false;
3133
});
3234
});
3335
});

0 commit comments

Comments
 (0)