Skip to content

Commit ce13413

Browse files
committed
style(client): fix some tslint issues
1 parent cb9d9ab commit ce13413

File tree

5 files changed

+11
-15
lines changed

5 files changed

+11
-15
lines changed

Diff for: templates/app/client/app/app.module.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ let providers: Provider[] = [{
4848
if(constants.env === 'development') {
4949
@Injectable()
5050
class HttpOptions extends BaseRequestOptions {
51-
merge(options: RequestOptionsArgs):RequestOptions {
51+
merge(options: RequestOptionsArgs): RequestOptions {
5252
options.url = `http://localhost:9000${options.url}`;
5353
return super.merge(options);
5454
}

Diff for: templates/app/client/components/auth(auth)/auth.service.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import constants from '../../app/app.constants';
88

99
// @flow
1010
class User {
11-
_id: string = '';
12-
name: string = '';
13-
email: string = '';
14-
role: string = '';
11+
_id = '';
12+
name = '';
13+
email = '';
14+
role = '';
1515
$promise = undefined;
1616
}
1717

Diff for: templates/app/client/components/auth(auth)/user.service.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type UserType = {
1313
_id?: string;
1414
name?: string;
1515
email?: string;
16-
}
16+
};
1717

1818
function handleError(err) {
1919
return Observable.throw(err.json() || 'Server error');
@@ -30,22 +30,22 @@ export class UserService {
3030

3131
query(): Observable<UserType[]> {
3232
return this.AuthHttp.get('/api/users/')
33-
.map((res:Response) => res.json())
33+
.map((res: Response) => res.json())
3434
.catch(handleError);
3535
}
3636
get(user<% if(filters.ts) { %>: UserType<% } %> = {id: 'me'}): Observable<UserType> {
3737
return this.AuthHttp.get(`/api/users/${user.id || user._id}`)
38-
.map((res:Response) => res.json())
38+
.map((res: Response) => res.json())
3939
.catch(handleError);
4040
}
4141
create(user: UserType) {
4242
return this.AuthHttp.post('/api/users/', user)
43-
.map((res:Response) => res.json())
43+
.map((res: Response) => res.json())
4444
.catch(handleError);
4545
}
4646
changePassword(user, oldPassword, newPassword) {
4747
return this.AuthHttp.put(`/api/users/${user.id || user._id}/password`, {oldPassword, newPassword})
48-
.map((res:Response) => res.json())
48+
.map((res: Response) => res.json())
4949
.catch(handleError);
5050
}
5151
remove(user) {

Diff for: templates/app/client/components/oauth-buttons(oauth)/oauth-buttons.component.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ import { Component } from '@angular/core';
88
export class OauthButtonsComponent {
99
loginOauth(provider) {
1010
window.location.href = `/auth/${provider}`;
11-
};
11+
}
1212
}

Diff for: templates/app/server/sqldb(sequelize)/index.js

-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
/**
22
* Sequelize initialization module
33
*/
4-
5-
'use strict';
6-
7-
import path from 'path';
84
import config from '../config/environment';
95
import Sequelize from 'sequelize';
106

0 commit comments

Comments
 (0)