Browse Source

Style fixes

pull/1/head
Sebastian 9 years ago
parent
commit
f8518525d0
  1. 2
      src/Squidex/app/components/internal/apps/apps-page.component.ts
  2. 4
      src/Squidex/app/components/layout/module.ts
  3. 2
      src/Squidex/app/components/public/home-page.component.ts
  4. 5
      src/Squidex/app/framework/angular/action.ts
  5. 2
      src/Squidex/app/framework/angular/autocomplete.component.ts
  6. 1
      src/Squidex/app/framework/angular/image-drop.directive.ts
  7. 2
      src/Squidex/app/framework/module.ts
  8. 2
      src/Squidex/app/framework/utils/immutable-object.ts
  9. 2
      src/Squidex/app/shared/services/app-languages.service.ts
  10. 2
      src/Squidex/app/shared/services/auth.service.ts
  11. 4
      src/Squidex/app/shared/services/users-provider.service.ts
  12. 14
      src/Squidex/tslint.json

2
src/Squidex/app/components/internal/apps/apps-page.component.ts

@ -27,7 +27,7 @@ export class AppsPageComponent implements Ng2.OnInit {
constructor(
private readonly title: TitleService,
private readonly appsStore: AppsStoreService,
private readonly appsStore: AppsStoreService
) {
}

4
src/Squidex/app/components/layout/module.ts

@ -24,13 +24,13 @@ import {
AppFormComponent,
AppsMenuComponent,
ProfileMenuComponent,
SearchFormComponent,
SearchFormComponent
],
exports: [
AppFormComponent,
AppsMenuComponent,
ProfileMenuComponent,
SearchFormComponent,
SearchFormComponent
]
})
export class SqxLayoutModule { }

2
src/Squidex/app/components/public/home-page.component.ts

@ -21,7 +21,7 @@ export class HomePageComponent implements Ng2.OnInit {
constructor(
private readonly auth: AuthService,
private readonly title: TitleService,
private readonly router: Ng2Router.Router,
private readonly router: Ng2Router.Router
) {
}

5
src/Squidex/app/framework/angular/action.ts

@ -5,10 +5,11 @@
* Copyright (c) Sebastian Stehle. All rights reserved
*/
const EMPTY_FUNC = () => { };
/* tslint:disable:no-empty */
/* tslint:disable:only-arrow-functions */
const EMPTY_FUNC = () => {};
export function Action() {
return function (target: any, key: string) {
let observable: any;

2
src/Squidex/app/framework/angular/autocomplete.component.ts

@ -28,6 +28,8 @@ const KEY_ENTER = 13;
const KEY_UP = 38;
const KEY_DOWN = 40;
/* tslint:disable:no-empty */
const NOOP = () => { };
export const SQX_AUTOCOMPLETE_CONTROL_VALUE_ACCESSOR: any = {

1
src/Squidex/app/framework/angular/image-drop.directive.ts

@ -95,6 +95,7 @@ export class ImageDropDirective {
private findImage(event: DragDropEvent): File | null {
let image: File | null = null;
/* tslint:disable:prefer-for-of */
for (let i = 0; i < event.dataTransfer.files.length; i++) {
const file = event.dataTransfer.files[i];

2
src/Squidex/app/framework/module.ts

@ -66,7 +66,7 @@ import {
SliderComponent,
SpinnerComponent,
TitleComponent,
UserReportComponent,
UserReportComponent
],
exports: [
AutocompleteComponent,

2
src/Squidex/app/framework/utils/immutable-object.ts

@ -5,6 +5,8 @@
* Copyright (c) Sebastian Stehle. All rights reserved
*/
/* tslint:disable:no-empty */
export abstract class ImmutableObject {
public abstract clone(): ImmutableObject;

2
src/Squidex/app/shared/services/app-languages.service.ts

@ -25,7 +25,7 @@ export class AppLanguageDto {
export class AddAppLanguageDto {
constructor(
public readonly name: string,
public readonly name: string
) {
}
}

2
src/Squidex/app/shared/services/auth.service.ts

@ -61,7 +61,7 @@ export class AuthService {
constructor(apiUrl: ApiUrlConfig,
private readonly http: Ng2Http.Http,
private readonly router: Ng2Router.Router,
private readonly router: Ng2Router.Router
) {
if (!apiUrl) {
return;

4
src/Squidex/app/shared/services/users-provider.service.ts

@ -7,7 +7,7 @@
import * as Ng2 from '@angular/core';
import { Observable, } from 'rxjs';
import { Observable } from 'rxjs';
import { UserDto, UsersService } from './users.service';
@ -19,7 +19,7 @@ export class UsersProviderService {
constructor(
private readonly usersService: UsersService,
private readonly authService: AuthService,
private readonly authService: AuthService
) {
}

14
src/Squidex/tslint.json

@ -38,7 +38,7 @@
"no-construct": true,
"no-debugger": true,
"no-duplicate-variable": true,
"no-empty": false,
"no-empty": true,
"no-eval": true,
"no-inferrable-types": [
true,
@ -48,6 +48,7 @@
"no-string-literal": false,
"no-switch-case-fall-through": true,
"no-trailing-whitespace": true,
"no-unused-expression": true,
"no-unused-variable": true,
"no-use-before-declare": true,
@ -62,10 +63,12 @@
],
"only-arrow-functions": [
true,
"allow-declarations"],
"allow-declarations"
],
"ordered-imports": [
true
],
"prefer-for-of": true,
"quotemark": [
true,
"single"
@ -74,6 +77,13 @@
"semicolon": [
"always"
],
"trailing-comma": [
true,
{
"multiline": "never",
"singleline": "never"
}
],
"triple-equals": [
true,
"allow-null-check"

Loading…
Cancel
Save