chore: fix tslint errors

This commit is contained in:
Martin Yankov
2019-05-07 15:58:16 +03:00
parent 66d631ebca
commit a84b6301ed
11 changed files with 111 additions and 111 deletions

View File

@@ -270,7 +270,7 @@ export abstract class AnimationBase implements AnimationBaseDefinition {
}
if (propertyAnimations.length === 0) {
throw new Error('No known animation properties specified');
throw new Error("No known animation properties specified");
}
return propertyAnimations;

View File

@@ -12,7 +12,7 @@ import {
import { layout } from "../../utils/utils";
import { device } from "../../platform";
import lazy from "../../utils/lazy";
import * as platform from '../../platform';
import * as platform from "../../platform";
export * from "./animation-common";
interface AnimationDefinitionInternal extends AnimationDefinition {
@@ -456,7 +456,7 @@ export class Animation extends AnimationBase {
case Properties.width:
case Properties.height: {
const isVertical: boolean = propertyAnimation.property === 'height';
const isVertical: boolean = propertyAnimation.property === "height";
const extentProperty = isVertical ? heightProperty : widthProperty;
extentProperty._initDefaultNativeValue(style);

View File

@@ -3,7 +3,7 @@
*/ /** */
import { View, Color } from "../core/view";
import {PercentLength} from '../styling/style-properties';
import { PercentLength } from "../styling/style-properties";
/**
* Defines animation options for the View.animate method.

View File

@@ -362,7 +362,7 @@ export class Animation extends AnimationBase {
case Properties.width:
case Properties.height:
const direction: string = animation.property;
const isHeight: boolean = direction === 'height';
const isHeight: boolean = direction === "height";
propertyNameToAnimate = "bounds";
if (!parent) {
throw new Error(`cannot animate ${direction} on root view`);