Skip to content

Commit 64e5d94

Browse files
author
Ismael Ramos
committed
feat(versions): updated dependencies versions and fixed tslint errors
1 parent 0c4c685 commit 64e5d94

File tree

7 files changed

+1961
-2048
lines changed

7 files changed

+1961
-2048
lines changed

package-lock.json

Lines changed: 1826 additions & 1992 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -22,33 +22,33 @@
2222
"npm": ">= 3.0.0"
2323
},
2424
"dependencies": {
25-
"@angular/animations": "5.0.0",
26-
"@angular/common": "5.0.0",
27-
"@angular/compiler": "5.0.0",
28-
"@angular/core": "5.0.0",
25+
"@angular/animations": "5.1.0",
26+
"@angular/common": "5.1.0",
27+
"@angular/compiler": "5.1.0",
28+
"@angular/core": "5.1.0",
2929
"@angular/flex-layout": "2.0.0-beta.10-4905443",
30-
"@angular/forms": "5.0.0",
31-
"@angular/http": "5.0.0",
32-
"@angular/platform-browser": "5.0.0",
33-
"@angular/platform-browser-dynamic": "5.0.0",
34-
"@angular/router": "5.0.0",
30+
"@angular/forms": "5.1.0",
31+
"@angular/http": "5.1.0",
32+
"@angular/platform-browser": "5.1.0",
33+
"@angular/platform-browser-dynamic": "5.1.0",
34+
"@angular/router": "5.1.0",
3535
"classlist.js": "1.1.20150312",
3636
"core-js": "2.5.1",
37-
"rxjs": "5.5.2",
37+
"rxjs": "5.5.5",
3838
"zone.js": "0.8.18"
3939
},
4040
"devDependencies": {
41-
"@angular/cdk": "2.0.0-beta.12",
42-
"@angular/cli": "1.5.0",
43-
"@angular/compiler-cli": "5.0.0",
44-
"@angular/material": "2.0.0-beta.12",
45-
"@angular/platform-server": "5.0.0",
46-
"@ngx-translate/core": "8.0.0",
41+
"@angular/cdk": "5.0.0",
42+
"@angular/cli": "1.6.0",
43+
"@angular/compiler-cli": "5.1.0",
44+
"@angular/material": "5.0.0",
45+
"@angular/platform-server": "5.1.0",
46+
"@ngx-translate/core": "9.0.1",
4747
"@ngx-translate/http-loader": "2.0.0",
48-
"@types/jasmine": "2.6.2",
48+
"@types/jasmine": "2.8.2",
4949
"@types/jasminewd2": "2.0.3",
50-
"@types/node": "8.0.48",
51-
"angular-cli-ghpages": "0.5.1",
50+
"@types/node": "8.0.56",
51+
"angular-cli-ghpages": "0.5.2",
5252
"codelyzer": "4.0.1",
5353
"coveralls": "3.0.0",
5454
"hammerjs": "2.0.8",
@@ -58,10 +58,10 @@
5858
"karma-chrome-launcher": "2.2.0",
5959
"karma-cli": "1.0.1",
6060
"karma-coverage-istanbul-reporter": "1.3.0",
61-
"karma-jasmine": "1.1.0",
61+
"karma-jasmine": "1.1.1",
6262
"karma-jasmine-html-reporter": "0.2.2",
6363
"karma-remap-istanbul": "0.6.0",
64-
"protractor": "5.2.0",
64+
"protractor": "5.2.1",
6565
"source-map-explorer": "1.5.0",
6666
"standard-version": "4.2.0",
6767
"ts-helpers": "1.1.2",

src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class AppComponent {
5151

5252
checkBrowserFeatures() {
5353
let supported = true;
54-
for (let feature in Modernizr) {
54+
for (const feature in Modernizr) {
5555
if (Modernizr.hasOwnProperty(feature) &&
5656
typeof Modernizr[feature] === 'boolean' && Modernizr[feature] === false) {
5757
supported = false;

src/app/core/search-bar/search-bar.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ describe('SearchBarComponent', () => {
5050
tick();
5151
fixture.detectChanges();
5252
expect(component.defaultHeroes.length).toBeGreaterThan(0);
53-
for (let hero of component.defaultHeroes) {
53+
for (const hero of component.defaultHeroes) {
5454
expect(hero.default).toBe(true);
5555
}
5656
}));

src/app/heroes/hero-list/hero-list.component.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ import {AppConfig} from '../../config/app.config';
77
import {Router} from '@angular/router';
88
import {LoggerService} from '../../core/logger.service';
99

10+
@Component({
11+
selector: 'app-remove-hero-dialog',
12+
templateUrl: './remove-hero.dialog.html',
13+
})
14+
15+
export class RemoveHeroDialogComponent {
16+
constructor() {
17+
}
18+
}
19+
1020
@Component({
1121
selector: 'app-hero-list',
1222
templateUrl: './hero-list.component.html',
@@ -64,7 +74,7 @@ export class HeroListComponent {
6474
}
6575

6676
remove(heroToRemove: Hero): void {
67-
let dialogRef = this.dialog.open(RemoveHeroDialogComponent);
77+
const dialogRef = this.dialog.open(RemoveHeroDialogComponent);
6878
dialogRef.afterClosed().subscribe(result => {
6979
if (result) {
7080
this.heroService.deleteHeroById(heroToRemove.id).subscribe(() => {
@@ -79,13 +89,3 @@ export class HeroListComponent {
7989
});
8090
}
8191
}
82-
83-
@Component({
84-
selector: 'app-remove-hero-dialog',
85-
templateUrl: './remove-hero.dialog.html',
86-
})
87-
88-
export class RemoveHeroDialogComponent {
89-
constructor() {
90-
}
91-
}

src/polyfills.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,12 @@ import 'zone.js/dist/zone'; // Included with Angular CLI.
7979
* CUSTOM IMPORTS
8080
*/
8181
import 'rxjs/add/observable/throw';
82-
82+
import 'rxjs/add/observable/forkJoin';
83+
import 'rxjs/add/operator/filter';
8384
import 'rxjs/add/operator/catch';
8485
import 'rxjs/add/operator/startWith';
8586
import 'rxjs/add/operator/do';
87+
import 'rxjs/add/operator/map';
8688

8789

8890
/**

tslint.json

Lines changed: 98 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,99 @@
11
{
2+
"rulesDirectory": [
3+
"node_modules/codelyzer"
4+
],
25
"rules": {
3-
"max-line-length": [true, 150],
4-
"no-inferrable-types": true,
6+
"arrow-return-shorthand": true,
7+
"callable-types": true,
58
"class-name": true,
69
"comment-format": [
710
true,
811
"check-space"
912
],
13+
"curly": true,
14+
"eofline": true,
15+
"forin": true,
16+
"import-blacklist": [
17+
true,
18+
"rxjs",
19+
"rxjs/Rx"
20+
],
21+
"import-spacing": true,
1022
"indent": [
1123
true,
1224
"spaces"
1325
],
14-
"eofline": true,
15-
"no-duplicate-variable": true,
16-
"no-eval": true,
26+
"interface-over-type-literal": true,
27+
"label-position": true,
28+
"max-line-length": [
29+
true,
30+
140
31+
],
32+
"member-access": false,
33+
"member-ordering": [
34+
true,
35+
{
36+
"order": [
37+
"static-field",
38+
"instance-field",
39+
"static-method",
40+
"instance-method"
41+
]
42+
}
43+
],
1744
"no-arg": true,
18-
"no-internal-module": true,
19-
"no-trailing-whitespace": true,
2045
"no-bitwise": true,
46+
"no-console": [
47+
true,
48+
"debug",
49+
"info",
50+
"time",
51+
"timeEnd",
52+
"trace"
53+
],
54+
"no-construct": true,
55+
"no-debugger": true,
56+
"no-duplicate-super": true,
57+
"no-empty": false,
58+
"no-empty-interface": true,
59+
"no-eval": true,
60+
"no-inferrable-types": [
61+
true,
62+
"ignore-params"
63+
],
64+
"no-misused-new": true,
65+
"no-non-null-assertion": true,
66+
"no-shadowed-variable": true,
67+
"no-string-literal": false,
68+
"no-string-throw": true,
69+
"no-switch-case-fall-through": true,
70+
"no-trailing-whitespace": true,
71+
"no-unnecessary-initializer": true,
2172
"no-unused-expression": true,
73+
"no-use-before-declare": true,
2274
"no-var-keyword": true,
75+
"object-literal-sort-keys": false,
2376
"one-line": [
2477
true,
78+
"check-open-brace",
2579
"check-catch",
2680
"check-else",
27-
"check-open-brace",
2881
"check-whitespace"
2982
],
83+
"prefer-const": true,
3084
"quotemark": [
3185
true,
32-
"single",
33-
"avoid-escape"
86+
"single"
87+
],
88+
"radix": true,
89+
"semicolon": [
90+
true,
91+
"always"
92+
],
93+
"triple-equals": [
94+
true,
95+
"allow-null-check"
3496
],
35-
"semicolon": [true, "always"],
3697
"typedef-whitespace": [
3798
true,
3899
{
@@ -43,21 +104,37 @@
43104
"variable-declaration": "nospace"
44105
}
45106
],
46-
"curly": true,
47-
"variable-name": [
48-
true,
49-
"ban-keywords",
50-
"check-format",
51-
"allow-leading-underscore",
52-
"allow-pascal-case"
53-
],
107+
"typeof-compare": true,
108+
"unified-signatures": true,
109+
"variable-name": false,
54110
"whitespace": [
55111
true,
56112
"check-branch",
57113
"check-decl",
58114
"check-operator",
59115
"check-separator",
60116
"check-type"
61-
]
117+
],
118+
"directive-selector": [
119+
true,
120+
"attribute",
121+
"app",
122+
"camelCase"
123+
],
124+
"component-selector": [
125+
true,
126+
"element",
127+
"app",
128+
"kebab-case"
129+
],
130+
"use-input-property-decorator": true,
131+
"use-output-property-decorator": true,
132+
"use-host-property-decorator": true,
133+
"no-input-rename": true,
134+
"no-output-rename": true,
135+
"use-life-cycle-interface": true,
136+
"use-pipe-transform-interface": true,
137+
"component-class-suffix": true,
138+
"directive-class-suffix": true
62139
}
63-
}
140+
}

0 commit comments

Comments
 (0)