@@ -53,6 +53,7 @@ protected function configure()
5353 ->addOption ('jet ' , null , InputOption::VALUE_NONE , 'Installs the Laravel Jetstream scaffolding ' )
5454 ->addOption ('dark ' , null , InputOption::VALUE_NONE , 'Indicate whether Breeze or Jetstream should be scaffolded with dark mode support ' )
5555 ->addOption ('typescript ' , null , InputOption::VALUE_NONE , 'Indicate whether Breeze should be scaffolded with TypeScript support ' )
56+ ->addOption ('eslint ' , null , InputOption::VALUE_NONE , 'Indicate whether Breeze should be scaffolded with ESLint and Prettier support ' )
5657 ->addOption ('ssr ' , null , InputOption::VALUE_NONE , 'Indicate whether Breeze or Jetstream should be scaffolded with Inertia SSR support ' )
5758 ->addOption ('api ' , null , InputOption::VALUE_NONE , 'Indicates whether Jetstream should be scaffolded with API support ' )
5859 ->addOption ('teams ' , null , InputOption::VALUE_NONE , 'Indicates whether Jetstream should be scaffolded with team support ' )
@@ -430,12 +431,13 @@ protected function installBreeze(string $directory, InputInterface $input, Outpu
430431 $ commands = array_filter ([
431432 $ this ->findComposer ().' require laravel/breeze --dev ' ,
432433 trim (sprintf (
433- $ this ->phpBinary ().' artisan breeze:install %s %s %s %s %s ' ,
434+ $ this ->phpBinary ().' artisan breeze:install %s %s %s %s %s %s ' ,
434435 $ input ->getOption ('stack ' ),
435436 $ input ->getOption ('typescript ' ) ? '--typescript ' : '' ,
436437 $ input ->getOption ('pest ' ) ? '--pest ' : '' ,
437438 $ input ->getOption ('dark ' ) ? '--dark ' : '' ,
438439 $ input ->getOption ('ssr ' ) ? '--ssr ' : '' ,
440+ $ input ->getOption ('eslint ' ) ? '--eslint ' : '' ,
439441 )),
440442 ]);
441443
@@ -552,11 +554,13 @@ protected function promptForBreezeOptions(InputInterface $input)
552554 'dark ' => 'Dark mode ' ,
553555 'ssr ' => 'Inertia SSR ' ,
554556 'typescript ' => 'TypeScript ' ,
557+ 'eslint ' => 'ESLint with Prettier ' ,
555558 ],
556559 default: array_filter ([
557560 $ input ->getOption ('dark ' ) ? 'dark ' : null ,
558561 $ input ->getOption ('ssr ' ) ? 'ssr ' : null ,
559562 $ input ->getOption ('typescript ' ) ? 'typescript ' : null ,
563+ $ input ->getOption ('eslint ' ) ? 'eslint ' : null ,
560564 ]),
561565 ))->each (fn ($ option ) => $ input ->setOption ($ option , true ));
562566 } elseif (in_array ($ input ->getOption ('stack ' ), ['blade ' , 'livewire ' , 'livewire-functional ' ]) && ! $ input ->getOption ('dark ' )) {
0 commit comments