ialexivy / vscode-angular2-files

vscode extension generating angular files with angular cli
MIT License
61 stars 36 forks source link

Compatibility with trailing commas #15

Closed opnarius closed 6 years ago

opnarius commented 6 years ago

When adding component, to application that uses traling commas lint rule

app.module.ts before:

@NgModule({
  declarations: [
    AppComponent,
    DashboardComponent,
  ],
  imports: [ ],
  providers: [],
  entryComponents: [AppComponent],
  schemas: [],
  bootstrap: [AppComponent],
})
export class AppModule { }

app.module.ts after:

@NgModule({
  declarations: [
    AppComponent,
    DashboardComponent,,
    SignedoutComponent
  ],
  imports: [ ],
  providers: [],
  entryComponents: [AppComponent],
  schemas: [],
  bootstrap: [AppComponent],
})
export class AppModule { }

Note extra comma after DashboardComponent, in declarations.