chore: update tslint rules (#7391)

This commit is contained in:
Manol Donev
2019-06-26 15:13:48 +03:00
committed by GitHub
parent 92370279d8
commit 4f39fb728b
399 changed files with 3101 additions and 2210 deletions

View File

@ -1,4 +1,4 @@
import * as textViewModule from "tns-core-modules/ui/text-view";
import * as textViewModule from "tns-core-modules/ui/text-view";
import * as colorModule from "tns-core-modules/color";
import * as utilsModule from "tns-core-modules/utils/utils";
import * as enums from "tns-core-modules/ui/enums";
@ -22,6 +22,7 @@ export function getNativeHint(textView: textViewModule.TextView): string {
export function getNativeFontSize(textView: textViewModule.TextView): number {
var density = utilsModule.layout.getDisplayDensity();
return textView.android.getTextSize() / density;
}
@ -35,7 +36,7 @@ export function getNativeBackgroundColor(textView: textViewModule.TextView): col
return new colorModule.Color((<org.nativescript.widgets.BorderDrawable>bkg).getBackgroundColor());
}
else {
return new colorModule.Color(bkg.backgroundColor)
return new colorModule.Color(bkg.backgroundColor);
}
}