@@ -12,6 +12,7 @@ Options:
1212 --allow-empty Allow empty commits when tasks revert all staged changes
1313 -p, --concurrent <number|boolean> The number of tasks to run concurrently, or false for serial
1414 --no-stash Disable the backup stash. Implies "--no-revert".
15+ -q, --quiet Disable lint-staged's own console output
1516 -v, --verbose Show task output even when tasks succeed; by default only failed output is shown
1617 -h, --help Display this help message` ;
1718
@@ -24,6 +25,7 @@ export async function runStagedCLI(args: string[]): Promise<void> {
2425 concurrent : { type : 'string' , short : 'p' } ,
2526 help : { type : 'boolean' , short : 'h' } ,
2627 'no-stash' : { type : 'boolean' } ,
28+ quiet : { type : 'boolean' , short : 'q' } ,
2729 verbose : { type : 'boolean' , short : 'v' } ,
2830 } ,
2931 allowPositionals : false ,
@@ -51,6 +53,7 @@ export async function runStagedCLI(args: string[]): Promise<void> {
5153 allowEmpty : values [ 'allow-empty' ] ?? values . allowEmpty ?? false ,
5254 concurrent : values . concurrent === undefined ? true : JSON . parse ( values . concurrent ) ,
5355 config : stagedConfig ,
56+ quiet : values . quiet ?? false ,
5457 stash : ! values [ 'no-stash' ] ,
5558 verbose : values . verbose ?? false ,
5659 } ) ;
0 commit comments