99Runs lint-staged with tasks from define.staged in rstack.config.
1010
1111Options:
12- --allow-empty allow empty commits when tasks revert all staged changes
13- -p, --concurrent <number|boolean> the number of tasks to run concurrently, or false for serial
14- -v, --verbose show task output even when tasks succeed; by default only failed output is shown
12+ --allow-empty Allow empty commits when tasks revert all staged changes
13+ -p, --concurrent <number|boolean> The number of tasks to run concurrently, or false for serial
14+ --no-stash Disable the backup stash. Implies "--no-revert".
15+ -v, --verbose Show task output even when tasks succeed; by default only failed output is shown
1516 -h, --help Display this help message` ;
1617
1718export async function runStagedCLI ( args : string [ ] ) : Promise < void > {
@@ -22,6 +23,7 @@ export async function runStagedCLI(args: string[]): Promise<void> {
2223 allowEmpty : { type : 'boolean' } ,
2324 concurrent : { type : 'string' , short : 'p' } ,
2425 help : { type : 'boolean' , short : 'h' } ,
26+ 'no-stash' : { type : 'boolean' } ,
2527 verbose : { type : 'boolean' , short : 'v' } ,
2628 } ,
2729 allowPositionals : false ,
@@ -49,6 +51,7 @@ export async function runStagedCLI(args: string[]): Promise<void> {
4951 allowEmpty : values [ 'allow-empty' ] ?? values . allowEmpty ?? false ,
5052 concurrent : values . concurrent === undefined ? true : JSON . parse ( values . concurrent ) ,
5153 config : stagedConfig ,
54+ stash : ! values [ 'no-stash' ] ,
5255 verbose : values . verbose ?? false ,
5356 } ) ;
5457 if ( ! success ) {
0 commit comments