File tree 4 files changed +14
-112
lines changed
4 files changed +14
-112
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ node_js:
14
14
- " 5"
15
15
- " 6"
16
16
- " 7"
17
+ - " 8"
17
18
18
19
cache :
19
20
directories :
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " npm-package-json-lint-config-default" ,
3
- "version" : " 1.0 .0" ,
3
+ "version" : " 1.1 .0" ,
4
4
"description" : " Default npm-package-json-lint shareable config" ,
5
5
"keywords" : [
6
6
" lint" ,
24
24
"main" : " index.js" ,
25
25
"scripts" : {
26
26
"eslint" : " eslint *.js --format=node_modules/eslint-formatter-pretty" ,
27
- "jscs" : " jscs *.js" ,
28
27
"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" ,
30
29
"npmpackagejsonlint" : " pjl-cli -c .npmpackagejsonlintrc.json" ,
31
- "test" : " mocha test "
30
+ "test" : " mocha"
32
31
},
33
32
"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" ,
36
36
"eslint-formatter-pretty" : " ^1.1.0" ,
37
37
"is-plain-obj" : " ^1.1.0" ,
38
- "jscs" : " ^3.0.7" ,
39
38
"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"
44
42
},
45
43
"peerDependencies" : {
46
44
"npm-package-json-lint" : " >= 2"
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- const should = require ( 'should ' ) ;
3
+ const chai = require ( 'chai ' ) ;
4
4
const isPlainObj = require ( 'is-plain-obj' ) ;
5
5
const config = require ( './../index.js' ) ;
6
6
const lint = require ( './helper/testHelper.js' ) ;
7
7
8
+ const should = chai . should ( ) ;
9
+
8
10
describe ( 'npm-package-json-lint config tests' , ( ) => {
9
11
context ( 'npm-package-json-lint config object' , ( ) => {
10
12
it ( 'should be an object' , ( ) => {
@@ -27,7 +29,7 @@ describe('npm-package-json-lint config tests', () => {
27
29
const expectedErrorCount = 2 ;
28
30
29
31
results . errors . length . should . equal ( expectedErrorCount ) ;
30
- results . hasOwnProperty ( 'warnings' ) . should . be . false ( ) ;
32
+ results . hasOwnProperty ( 'warnings' ) . should . be . false ;
31
33
} ) ;
32
34
} ) ;
33
35
} ) ;
You can’t perform that action at this time.
0 commit comments