Skip to content

Commit 2dfb6ce

Browse files
committed
fix(ts): fix CLI TS linter issues
1 parent 81d5e89 commit 2dfb6ce

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

packages/git-proxy-cli/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ async function logout() {
307307
}
308308

309309
// Parsing command line arguments
310-
yargs(hideBin(process.argv))
310+
yargs(hideBin(process.argv)) // eslint-disable-line @typescript-eslint/no-unused-expressions
311311
.command({
312312
command: 'authorise',
313313
describe: 'Authorise git push by ID',
@@ -339,7 +339,7 @@ yargs(hideBin(process.argv))
339339
.command({
340340
command: 'config',
341341
describe: 'Print configuration',
342-
handler(argv) {
342+
handler() {
343343
console.log(`GitProxy URL: ${baseUrl}`);
344344
},
345345
})
@@ -365,7 +365,7 @@ yargs(hideBin(process.argv))
365365
.command({
366366
command: 'logout',
367367
describe: 'Log out',
368-
handler(argv) {
368+
handler() {
369369
logout();
370370
},
371371
})

packages/git-proxy-cli/tsconfig.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"compilerOptions": {
3+
"target": "ES6",
4+
"lib": ["DOM", "ESNext"],
5+
"allowJs": true,
6+
"checkJs": false,
7+
"jsx": "react-jsx",
8+
"moduleResolution": "Node",
9+
"strict": true,
10+
"noEmit": true,
11+
"skipLibCheck": true,
12+
"isolatedModules": true,
13+
"module": "CommonJS",
14+
"esModuleInterop": true,
15+
"allowSyntheticDefaultImports": true
16+
},
17+
"include": ["index.js", "test", "coverage"]
18+
}

0 commit comments

Comments
 (0)