File tree 2 files changed +9
-9
lines changed
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,7 @@ const { runPromise } = require('../lib/run');
7
7
const CLI = require ( '../lib/cli' ) ;
8
8
const TeamInfo = require ( '../lib/team_info' ) ;
9
9
10
- const yargs = require ( 'yargs' ) ;
11
- const argv = yargs
10
+ require ( 'yargs' ) // eslint-disable-line
12
11
. command ( {
13
12
command : 'list <team> [org]' ,
14
13
desc : 'Get the list of members in a team' ,
@@ -22,19 +21,20 @@ const argv = yargs
22
21
describe : 'Name of the organization' ,
23
22
type : 'string' ,
24
23
default : 'nodejs'
25
- } )
24
+ } ) ;
26
25
} ,
27
26
handler : handler
28
27
} )
29
28
. command ( {
30
29
command : 'sync <file>' ,
31
- desc : 'Synchronize the <!-- ncu-team-sync.team($org/$team) --> block in a file' ,
30
+ desc :
31
+ 'Synchronize the <!-- ncu-team-sync.team($org/$team) --> block in a file' ,
32
32
builder : ( yargs ) => {
33
33
yargs
34
34
. positional ( 'file' , {
35
35
describe : 'Path to the file to update' ,
36
36
type : 'string'
37
- } )
37
+ } ) ;
38
38
} ,
39
39
handler : handler
40
40
} )
@@ -52,7 +52,7 @@ async function main(argv) {
52
52
const request = new Request ( credentials ) ;
53
53
54
54
const [ command ] = argv . _ ;
55
- switch ( command ) {
55
+ switch ( command ) {
56
56
case 'list' :
57
57
const info = new TeamInfo ( cli , request , argv . org , argv . team ) ;
58
58
await info . listMembers ( ) ;
Original file line number Diff line number Diff line change 13
13
"test" : " npm run test-unit && npm run lint" ,
14
14
"test-unit" : " mocha --require intelli-espower-loader test/unit/*.test.js --exit" ,
15
15
"test-all" : " mocha --require intelli-espower-loader test/**/*.test.js --exit" ,
16
- "lint-fix" : " eslint . --fix" ,
17
16
"coverage" : " nyc --reporter=html --reporter=text --reporter=text-summary npm test" ,
18
17
"coverage-all" : " nyc --reporter=lcov --reporter=text --reporter=text-summary npm run test-all" ,
19
- "lint" : " eslint . --cache" ,
20
- "report-coverage" : " nyc report --reporter=lcov > coverage.lcov && codecov"
18
+ "report-coverage" : " nyc report --reporter=lcov > coverage.lcov && codecov" ,
19
+ "lint" : " eslint . 'bin/*' --cache" ,
20
+ "lint-fix" : " eslint . 'bin/*' --fix"
21
21
},
22
22
"author" : " Joyee Cheung <joyeec9h3@gmail.com>" ,
23
23
"repository" : {
You can’t perform that action at this time.
0 commit comments