Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 3444790

Browse files
Foxandxssnaomiblack
authored andcommitted
make the example lintable
1 parent c0edf36 commit 3444790

15 files changed

+63
-60
lines changed

gulpfile.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,10 @@ gulp.task('lint', function() {
670670
'!./public/docs/_examples/**/node_modules/**/*',
671671
'!./public/docs/_examples/_protractor/**/*',
672672
'!./public/docs/_examples/**/typings/**/*',
673-
'!./public/docs/_examples/**/typings-ng1/**/*'
673+
'!./public/docs/_examples/**/typings-ng1/**/*',
674+
// temporary until codelyzer is fixed mgechev/codelyzer#60
675+
'!./public/docs/_examples/animations/ts/app/hero.service.ts'
676+
674677
])
675678
.pipe(tslint({
676679
rulesDirectory: ['node_modules/codelyzer'],

public/docs/_examples/animations/ts/app/hero-list-auto.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ import {
55
state,
66
style,
77
animate,
8-
transition,
9-
group
8+
transition
109
} from '@angular/core';
11-
import { Hero, Heroes } from './hero.service';
10+
import { Heroes } from './hero.service';
1211

1312
@Component({
1413
moduleId: module.id,
@@ -24,7 +23,7 @@ import { Hero, Heroes } from './hero.service';
2423
`,
2524
// #enddocregion template
2625
styleUrls: ['hero-list.component.css'],
27-
26+
2827
/* When the element leaves (transition "in => void" occurs),
2928
* get the element's current computed height and animate
3029
* it down to 0.
@@ -42,5 +41,5 @@ import { Hero, Heroes } from './hero.service';
4241
// #enddocregion animationdef
4342
})
4443
export class HeroListAutoComponent {
45-
@Input() heroes:Heroes;
44+
@Input() heroes: Heroes;
4645
}

public/docs/_examples/animations/ts/app/hero-list-basic.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
animate
1212
} from '@angular/core';
1313
// #enddocregion imports
14-
import { Hero, Heroes } from './hero.service';
14+
import { Heroes } from './hero.service';
1515

1616
@Component({
1717
moduleId: module.id,
@@ -64,5 +64,5 @@ import { Hero, Heroes } from './hero.service';
6464
// #enddocregion animationdef
6565
})
6666
export class HeroListBasicComponent {
67-
@Input() heroes:Heroes;
67+
@Input() heroes: Heroes;
6868
}

public/docs/_examples/animations/ts/app/hero-list-classes.component.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ import {
55
state,
66
style,
77
animate,
8-
transition,
9-
group
8+
transition
109
} from '@angular/core';
11-
import { Hero, Heroes } from './hero.service';
10+
import { Heroes } from './hero.service';
1211

1312
@Component({
1413
moduleId: module.id,
@@ -42,5 +41,5 @@ import { Hero, Heroes } from './hero.service';
4241
// #enddocregion animationdef
4342
})
4443
export class HeroListClassesComponent {
45-
@Input() heroes:Heroes;
44+
@Input() heroes: Heroes;
4645
}

public/docs/_examples/animations/ts/app/hero-list-combined-transitions.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
animate
1111
} from '@angular/core';
1212
// #enddocregion imports
13-
import { Hero, Heroes } from './hero.service';
13+
import { Heroes } from './hero.service';
1414

1515
@Component({
1616
moduleId: module.id,
@@ -53,5 +53,5 @@ import { Hero, Heroes } from './hero.service';
5353
// #enddocregion animationdef
5454
})
5555
export class HeroListCombinedTransitionsComponent {
56-
@Input() heroes:Heroes;
56+
@Input() heroes: Heroes;
5757
}

public/docs/_examples/animations/ts/app/hero-list-enter-leave-states.component.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ import {
55
state,
66
style,
77
animate,
8-
transition,
9-
group
8+
transition
109
} from '@angular/core';
11-
import { Hero, Heroes } from './hero.service';
10+
import { Heroes } from './hero.service';
1211

1312
@Component({
1413
moduleId: module.id,
@@ -58,5 +57,5 @@ import { Hero, Heroes } from './hero.service';
5857
// #enddocregion animationdef
5958
})
6059
export class HeroListEnterLeaveStatesComponent {
61-
@Input() heroes:Heroes;
60+
@Input() heroes: Heroes;
6261
}

public/docs/_examples/animations/ts/app/hero-list-enter-leave.component.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ import {
55
state,
66
style,
77
animate,
8-
transition,
9-
group
8+
transition
109
} from '@angular/core';
11-
import { Hero, Heroes } from './hero.service';
10+
import { Heroes } from './hero.service';
1211

1312
@Component({
1413
moduleId: module.id,
@@ -46,5 +45,5 @@ import { Hero, Heroes } from './hero.service';
4645
// #enddocregion animationdef
4746
})
4847
export class HeroListEnterLeaveComponent {
49-
@Input() heroes:Heroes;
48+
@Input() heroes: Heroes;
5049
}

public/docs/_examples/animations/ts/app/hero-list-groups.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
transition,
99
group
1010
} from '@angular/core';
11-
import { Hero, Heroes } from './hero.service';
11+
import { Heroes } from './hero.service';
1212

1313
@Component({
1414
moduleId: module.id,
@@ -74,5 +74,5 @@ import { Hero, Heroes } from './hero.service';
7474
// #enddocregion animationdef
7575
})
7676
export class HeroListGroupsComponent {
77-
@Input() heroes:Heroes;
77+
@Input() heroes: Heroes;
7878
}

public/docs/_examples/animations/ts/app/hero-list-inline-styles.component.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ import {
44
Component,
55
Input,
66
trigger,
7-
state,
87
style,
98
transition,
109
animate
1110
} from '@angular/core';
1211
// #enddocregion imports
13-
import { Hero, Heroes } from './hero.service';
12+
import { Heroes } from './hero.service';
1413

1514
@Component({
1615
moduleId: module.id,
@@ -55,5 +54,5 @@ import { Hero, Heroes } from './hero.service';
5554
// #enddocregion animationdef
5655
})
5756
export class HeroListInlineStylesComponent {
58-
@Input() heroes:Heroes;
57+
@Input() heroes: Heroes;
5958
}

public/docs/_examples/animations/ts/app/hero-list-keyframes.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* tslint:disable */
12
import {
23
Component,
34
Input,
@@ -9,7 +10,7 @@ import {
910
transition,
1011
group
1112
} from '@angular/core';
12-
import { Hero, Heroes } from './hero.service';
13+
import { Heroes } from './hero.service';
1314

1415
@Component({
1516
moduleId: module.id,
@@ -59,5 +60,5 @@ import { Hero, Heroes } from './hero.service';
5960
// #enddocregion animationdef
6061
})
6162
export class HeroListKeyframesComponent {
62-
@Input() heroes:Heroes;
63+
@Input() heroes: Heroes;
6364
}

0 commit comments

Comments
 (0)