Skip to content

Commit e91ab64

Browse files
committedFeb 10, 2018
eslint: lint bin folder and fix linting of bin folder
1 parent 38dbb66 commit e91ab64

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed
 

‎bin/ncu-team

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ const { runPromise } = require('../lib/run');
77
const CLI = require('../lib/cli');
88
const TeamInfo = require('../lib/team_info');
99

10-
const yargs = require('yargs');
11-
const argv = yargs
10+
require('yargs') // eslint-disable-line
1211
.command({
1312
command: 'list <team> [org]',
1413
desc: 'Get the list of members in a team',
@@ -22,19 +21,20 @@ const argv = yargs
2221
describe: 'Name of the organization',
2322
type: 'string',
2423
default: 'nodejs'
25-
})
24+
});
2625
},
2726
handler: handler
2827
})
2928
.command({
3029
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',
3232
builder: (yargs) => {
3333
yargs
3434
.positional('file', {
3535
describe: 'Path to the file to update',
3636
type: 'string'
37-
})
37+
});
3838
},
3939
handler: handler
4040
})
@@ -52,7 +52,7 @@ async function main(argv) {
5252
const request = new Request(credentials);
5353

5454
const [ command ] = argv._;
55-
switch(command) {
55+
switch (command) {
5656
case 'list':
5757
const info = new TeamInfo(cli, request, argv.org, argv.team);
5858
await info.listMembers();

‎package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
"test": "npm run test-unit && npm run lint",
1414
"test-unit": "mocha --require intelli-espower-loader test/unit/*.test.js --exit",
1515
"test-all": "mocha --require intelli-espower-loader test/**/*.test.js --exit",
16-
"lint-fix": "eslint . --fix",
1716
"coverage": "nyc --reporter=html --reporter=text --reporter=text-summary npm test",
1817
"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"
2121
},
2222
"author": "Joyee Cheung <joyeec9h3@gmail.com>",
2323
"repository": {

0 commit comments

Comments
 (0)
Please sign in to comment.