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( constructor(
private readonly title: TitleService, 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, AppFormComponent,
AppsMenuComponent, AppsMenuComponent,
ProfileMenuComponent, ProfileMenuComponent,
SearchFormComponent, SearchFormComponent
], ],
exports: [ exports: [
AppFormComponent, AppFormComponent,
AppsMenuComponent, AppsMenuComponent,
ProfileMenuComponent, ProfileMenuComponent,
SearchFormComponent, SearchFormComponent
] ]
}) })
export class SqxLayoutModule { } export class SqxLayoutModule { }

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

@ -21,7 +21,7 @@ export class HomePageComponent implements Ng2.OnInit {
constructor( constructor(
private readonly auth: AuthService, private readonly auth: AuthService,
private readonly title: TitleService, 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 * Copyright (c) Sebastian Stehle. All rights reserved
*/ */
const EMPTY_FUNC = () => { }; /* tslint:disable:no-empty */
/* tslint:disable:only-arrow-functions */ /* tslint:disable:only-arrow-functions */
const EMPTY_FUNC = () => {};
export function Action() { export function Action() {
return function (target: any, key: string) { return function (target: any, key: string) {
let observable: any; 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_UP = 38;
const KEY_DOWN = 40; const KEY_DOWN = 40;
/* tslint:disable:no-empty */
const NOOP = () => { }; const NOOP = () => { };
export const SQX_AUTOCOMPLETE_CONTROL_VALUE_ACCESSOR: any = { 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 { private findImage(event: DragDropEvent): File | null {
let image: File | null = null; let image: File | null = null;
/* tslint:disable:prefer-for-of */
for (let i = 0; i < event.dataTransfer.files.length; i++) { for (let i = 0; i < event.dataTransfer.files.length; i++) {
const file = event.dataTransfer.files[i]; const file = event.dataTransfer.files[i];

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

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

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

@ -5,6 +5,8 @@
* Copyright (c) Sebastian Stehle. All rights reserved * Copyright (c) Sebastian Stehle. All rights reserved
*/ */
/* tslint:disable:no-empty */
export abstract class ImmutableObject { export abstract class ImmutableObject {
public abstract clone(): 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 { export class AddAppLanguageDto {
constructor( 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, constructor(apiUrl: ApiUrlConfig,
private readonly http: Ng2Http.Http, private readonly http: Ng2Http.Http,
private readonly router: Ng2Router.Router, private readonly router: Ng2Router.Router
) { ) {
if (!apiUrl) { if (!apiUrl) {
return; return;

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

@ -7,7 +7,7 @@
import * as Ng2 from '@angular/core'; import * as Ng2 from '@angular/core';
import { Observable, } from 'rxjs'; import { Observable } from 'rxjs';
import { UserDto, UsersService } from './users.service'; import { UserDto, UsersService } from './users.service';
@ -19,7 +19,7 @@ export class UsersProviderService {
constructor( constructor(
private readonly usersService: UsersService, 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-construct": true,
"no-debugger": true, "no-debugger": true,
"no-duplicate-variable": true, "no-duplicate-variable": true,
"no-empty": false, "no-empty": true,
"no-eval": true, "no-eval": true,
"no-inferrable-types": [ "no-inferrable-types": [
true, true,
@ -48,6 +48,7 @@
"no-string-literal": false, "no-string-literal": false,
"no-switch-case-fall-through": true, "no-switch-case-fall-through": true,
"no-trailing-whitespace": true, "no-trailing-whitespace": true,
"no-unused-expression": true, "no-unused-expression": true,
"no-unused-variable": true, "no-unused-variable": true,
"no-use-before-declare": true, "no-use-before-declare": true,
@ -62,10 +63,12 @@
], ],
"only-arrow-functions": [ "only-arrow-functions": [
true, true,
"allow-declarations"], "allow-declarations"
],
"ordered-imports": [ "ordered-imports": [
true true
], ],
"prefer-for-of": true,
"quotemark": [ "quotemark": [
true, true,
"single" "single"
@ -74,6 +77,13 @@
"semicolon": [ "semicolon": [
"always" "always"
], ],
"trailing-comma": [
true,
{
"multiline": "never",
"singleline": "never"
}
],
"triple-equals": [ "triple-equals": [
true, true,
"allow-null-check" "allow-null-check"

Loading…
Cancel
Save