File tree Expand file tree Collapse file tree 5 files changed +119
-630
lines changed Expand file tree Collapse file tree 5 files changed +119
-630
lines changed Original file line number Diff line number Diff line change 6464 "@nestjs/schematics" : " ^8.0.0" ,
6565 "@nestjs/testing" : " ^8.0.0" ,
6666 "@types/axios" : " ^0.14.0" ,
67+ "@types/eslint" : " ^8" ,
6768 "@types/express" : " ^4.17.13" ,
6869 "@types/inquirer" : " ^8.2.1" ,
6970 "@types/jest" : " 27.5.0" ,
Original file line number Diff line number Diff line change @@ -138,6 +138,11 @@ export class InitCommand implements CommandRunner {
138138 }
139139 }
140140
141+ if ( await this . meta . hasAstro ( ) ) {
142+ presets . push ( builder . preset ( 'astro' ) )
143+ extensions . add ( 'astro' )
144+ }
145+
141146 if ( await this . meta . hasNextJs ( ) ) {
142147 presets . push ( builder . preset ( 'nextJs' ) )
143148 directories . add ( 'pages' ) . add ( 'app' ) . add ( 'lib' )
Original file line number Diff line number Diff line change @@ -45,6 +45,10 @@ export class MetaService {
4545 return this . hasRuntimeDependency ( 'react' )
4646 }
4747
48+ public async hasAstro ( ) {
49+ return this . hasRuntimeDependency ( 'astro' )
50+ }
51+
4852 public async hasNextJs ( ) {
4953 return this . hasRuntimeDependency ( 'next' )
5054 }
Original file line number Diff line number Diff line change 11export enum Versions {
22 ESLintKitMajor = '11' ,
33 ESLintKit = '^11.0.0' ,
4- ESLint = '^8.56 .0' ,
4+ ESLint = '^8.57 .0' ,
55 Prettier = '^3.0.0' ,
66}
You can’t perform that action at this time.
0 commit comments