Skip to content

Commit

Permalink
add editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
irustm committed Mar 30, 2019
1 parent 6f9443e commit ed73877
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
11 changes: 11 additions & 0 deletions .editorconfig
@@ -0,0 +1,11 @@
# http://editorconfig.org

root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
10 changes: 5 additions & 5 deletions projects/fullcalendar/src/lib/calendar/calendar.component.ts
Expand Up @@ -150,9 +150,9 @@ export class CalendarComponent implements OnInit, OnChanges, AfterViewInit {
@Input() eventOrder?:
| string
| Array<
| ((a: EventApi, b: EventApi) => number)
| (string | ((a: EventApi, b: EventApi) => number))
>;
| ((a: EventApi, b: EventApi) => number)
| (string | ((a: EventApi, b: EventApi) => number))
>;
@Input() rerenderDelay?: number | null;
@Input() dragRevertDuration?: number;
@Input() dragScroll?: boolean;
Expand Down Expand Up @@ -191,8 +191,8 @@ export class CalendarComponent implements OnInit, OnChanges, AfterViewInit {

calendar: Calendar;

constructor(private element: ElementRef) {}
ngOnInit() {}
constructor(private element: ElementRef) { }
ngOnInit() { }
ngAfterViewInit() {
this.updateAllOptions();
this.calendar = new Calendar(this.element.nativeElement, this.options);
Expand Down
4 changes: 2 additions & 2 deletions src/app/app.component.ts
Expand Up @@ -19,7 +19,7 @@ export class AppComponent implements OnInit {
customButtons: {
myCustomButton: {
text: 'custom!',
click: function() {
click: function () {
alert('clicked the custom button!');
}
}
Expand All @@ -29,7 +29,7 @@ export class AppComponent implements OnInit {
center: 'title',
right: 'dayGridMonth'
},
plugins: [ dayGridPlugin, interactionPlugin ]
plugins: [dayGridPlugin, interactionPlugin]
};

}
Expand Down

0 comments on commit ed73877

Please sign in to comment.