File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " simplefrontend " : patch
3+ ---
4+
5+ batch prettier and eslint first
Original file line number Diff line number Diff line change @@ -13,17 +13,13 @@ export async function installSolutions({
1313} : {
1414 solutions : Solutions ;
1515} ) {
16- await Promise . all (
17- solutions . map ( async ( solution ) => {
18- if ( solution === "prettier" ) {
19- setupPrettier ( ) ;
20- } else if ( solution === "eslint" ) {
21- await setupEslint ( ) ;
22- } else if ( solution === "typescript" ) {
23- await setupTypescript ( ) ;
24- }
25- } ) ,
26- ) ;
16+ if ( solutions . includes ( "prettier" ) ) {
17+ setupPrettier ( ) ;
18+ }
19+
20+ if ( solutions . includes ( "eslint" ) ) {
21+ await setupEslint ( ) ;
22+ }
2723
2824 if ( solutions . includes ( "prettier" ) && solutions . includes ( "eslint" ) ) {
2925 log . info (
@@ -32,6 +28,10 @@ export async function installSolutions({
3228 setupEslintConfigPrettier ( ) ;
3329 }
3430
31+ if ( solutions . includes ( "typescript" ) ) {
32+ await setupTypescript ( ) ;
33+ }
34+
3535 if ( ! ( solutions . includes ( "prettier" ) || solutions . includes ( "eslint" ) ) ) {
3636 // no need to ask for pre-push hook or github actions if no formatting or linting is setup
3737 return ;
You can’t perform that action at this time.
0 commit comments