Skip to content

Commit 1477c6a

Browse files
committed
config
1 parent a0e6b95 commit 1477c6a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/citty.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ArgDef, defineCommand, parseArgs } from 'citty';
1+
import { ArgDef, defineCommand } from 'citty';
22
import * as zsh from './zsh';
33
import * as bash from './bash';
44
import * as fish from './fish';
@@ -160,8 +160,8 @@ export default async function tab<T extends ArgsDef = ArgsDef>(
160160
break;
161161
}
162162
default: {
163-
const args = (await resolve(instance.args))!;
164-
const parsed = parseArgs(extra, args);
163+
// const args = (await resolve(instance.args))!;
164+
// const parsed = parseArgs(extra, args);
165165
// TODO: this is not ideal at all
166166
// const matchedCommand = parsed._.join(' ').trim(); //TODO: this was passed to parse line 170
167167
// TODO: `command lint i` does not work because `lint` and `i` are potential commands

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export class Completion {
180180
toComplete = '';
181181
}
182182

183-
const [matchedCommand, remaining] = this.matchCommand(previousArgs);
183+
const [matchedCommand] = this.matchCommand(previousArgs);
184184

185185
const lastPrevArg = previousArgs[previousArgs.length - 1];
186186

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
// "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
9494
// "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
9595
// "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
96-
"noUnusedLocals": false /* Enable error reporting when local variables aren't read. */,
96+
"noUnusedLocals": true /* Enable error reporting when local variables aren't read. */,
9797
// "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
9898
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
9999
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */

0 commit comments

Comments
 (0)