@@ -118,13 +118,13 @@ async function setupCommand (name, description, argv, importMeta) {
118118
119119 Options
120120 ${ printFlagList ( {
121- '-- all' : 'Include all issues' ,
122- '-- debug' : 'Output debug information' ,
123- '-- dry-run' : 'Only output what will be done without actually doing it' ,
124- '-- json' : 'Output result as json' ,
125- '-- markdown' : 'Output result as markdown' ,
126- '-- strict' : 'Exits with an error code if any matching issues are found' ,
127- '-- view' : 'Will wait for and return the created report'
121+ 'all' : 'Include all issues' ,
122+ 'debug' : 'Output debug information' ,
123+ 'dry-run' : 'Only output what will be done without actually doing it' ,
124+ 'json' : 'Output result as json' ,
125+ 'markdown' : 'Output result as markdown' ,
126+ 'strict' : 'Exits with an error code if any matching issues are found' ,
127+ 'view' : 'Will wait for and return the created report'
128128 } , 6 ) }
129129
130130 Examples
@@ -185,9 +185,11 @@ async function setupCommand (name, description, argv, importMeta) {
185185 . then ( res => {
186186 if ( ! res . success ) handleUnsuccessfulApiResponse ( 'getReportSupportedFiles' , res , ora ( ) )
187187 return res . data
188- } ) . catch ( cause => {
189- throw new ErrorWithCause ( 'Failed getting supported files for report' , { cause } )
190- } )
188+ } ) . catch (
189+ /** @type {(cause: Error) => never } */
190+ ( cause ) => {
191+ throw new ErrorWithCause ( 'Failed getting supported files for report' , { cause } )
192+ } )
191193
192194 const packagePaths = await getPackageFiles ( cwd , cli . input , config , supportedFiles , debugLog )
193195
0 commit comments