Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/prettier #10

Merged
merged 3 commits into from
Jun 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"parser": "typescript",
"arrowParens": "always",
"printWidth": 120,
"singleQuote": true,
"trailingComma": "all"
}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ Each Pull Request will contain explanation and steps taken to complete a feature
## New project

- [Create a new Angular project](https://github.com/brunolm/angular-how-to/pull/1)
- [Add prettier config](https://github.com/brunolm/angular-how-to/pull/10)

### Upgrades

- ~~[Upgrade from Angular 4 to Angular 5](https://github.com/brunolm/angular-how-to/pull/6)~~
- [Upgrade from Angular 5 to Angular 6](https://github.com/brunolm/angular-how-to/commit/ffa5b2dbfd88f0846ad0bd4b158b4b44a7044bdf)
- [Upgrade @angular-cli](https://github.com/brunolm/angular-how-to/pull/8)
Expand Down
18 changes: 5 additions & 13 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';

import { AppComponent } from './app.component';
import { AppRoutingModule } from './app.router';
import { LayoutComponent } from './shared/layout/layout.component';
import { RouterModule } from '@angular/router';
import { SharedModule } from './shared/shared.module';

@NgModule({
declarations: [
AppComponent,
],
imports: [
AppRoutingModule,
BrowserModule,
SharedModule,
],
declarations: [AppComponent],
imports: [AppRoutingModule, BrowserModule, SharedModule],
providers: [],
bootstrap: [AppComponent]
bootstrap: [AppComponent],
})
export class AppModule { }
export class AppModule {}