Skip to content

Commit 1700d54

Browse files
authored
Update deps (#2)
* Remove jscs * Add Node 8 to test environments * Bump deps and convert to chai
1 parent ec0f4d2 commit 1700d54

File tree

4 files changed

+14
-112
lines changed

4 files changed

+14
-112
lines changed

Diff for: .jscsrc

-99
This file was deleted.

Diff for: .travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ node_js:
1414
- "5"
1515
- "6"
1616
- "7"
17+
- "8"
1718

1819
cache:
1920
directories:

Diff for: package.json

+9-11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "npm-package-json-lint-config-default",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"description": "Default npm-package-json-lint shareable config",
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"

Diff for: test/tests.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
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', () => {
@@ -27,7 +29,7 @@ describe('npm-package-json-lint config tests', () => {
2729
const expectedErrorCount = 2;
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)