File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1- import { ArgDef , defineCommand , parseArgs } from 'citty' ;
1+ import { ArgDef , defineCommand } from 'citty' ;
22import * as zsh from './zsh' ;
33import * as bash from './bash' ;
44import * 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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. */
You can’t perform that action at this time.
0 commit comments