From 4f39fb728b6bcacdafed38dd0a80137fcc9fb1e9 Mon Sep 17 00:00:00 2001 From: Manol Donev Date: Wed, 26 Jun 2019 15:13:48 +0300 Subject: [PATCH] chore: update tslint rules (#7391) --- build/tslint.json | 4 +- e2e/animation/e2e/screen.ts | 4 +- .../app/reddit-item-view-model-page.ts | 4 +- .../android-back-button-page.ts | 2 +- e2e/modal-navigation/app/home/home-page.ts | 8 +- .../app/modal-no-page/modal-no-page.ts | 4 +- e2e/modal-navigation/app/modal/modal-page.ts | 4 +- .../e2e/android-back-button.e2e-spec.ts | 6 +- .../e2e/modal-frame.e2e-spec.ts | 6 +- .../e2e/modal-layout.e2e-spec.ts | 6 +- .../e2e/modal-page.e2e-spec.ts | 6 +- .../e2e/modal-tab.e2e-spec.ts | 6 +- e2e/modal-navigation/e2e/screen.ts | 6 +- e2e/modal-navigation/e2e/shared.e2e-spec.ts | 2 +- .../e2e/frame-root.e2e-spec.ts | 6 +- .../e2e/frame-tab-root.e2e-spec.ts | 8 +- .../e2e/issues.e2e.spec.ts | 2 +- .../e2e/layout-root.e2e-spec.ts | 10 +- e2e/nested-frame-navigation/e2e/screen.ts | 42 +- .../e2e/tab-root.e2e-spec.ts | 20 +- .../action-bar/action-item-position-page.ts | 2 +- .../action-bar/flat-tab-opaque-bar-page.ts | 2 +- e2e/ui-tests-app/app/action-bar/icons-page.ts | 4 +- .../app/action-bar/local-icons-page.ts | 4 +- e2e/ui-tests-app/app/action-bar/modal-page.ts | 8 +- .../modal-test-hidden-action-bar-page.ts | 2 +- .../modal-test-with-action-bar-page.ts | 2 +- e2e/ui-tests-app/app/animation/main-page.ts | 1 + e2e/ui-tests-app/app/bindings/basics-page.ts | 9 +- .../app/bottom-navigation/main-page.ts | 2 +- .../app/button/border-playground-page.ts | 10 +- e2e/ui-tests-app/app/button/main-page.ts | 1 + .../background-image-linear-gradient-page.ts | 2 +- .../app/css/background-shorthand-page.ts | 2 +- e2e/ui-tests-app/app/css/elevation-page.ts | 2 +- e2e/ui-tests-app/app/css/main-page.ts | 1 + .../margins-paddings-with-percentage-page.ts | 36 +- e2e/ui-tests-app/app/events/console-page.ts | 3 +- e2e/ui-tests-app/app/events/gestures-page.ts | 3 +- e2e/ui-tests-app/app/events/handlers-page.ts | 4 +- e2e/ui-tests-app/app/events/i73-page.ts | 3 +- .../app/events/touch-event-page.ts | 6 +- .../app/flexbox/flexbox-css-page.ts | 2 +- .../app/flexbox/flexbox-main-page.ts | 1 + e2e/ui-tests-app/app/flexbox/flexbox-page.ts | 2 +- .../app/fonts-tests/all-fonts-page.ts | 6 +- .../app/fonts-tests/button-page.ts | 1 + .../app/fonts-tests/label-page.ts | 1 + .../app/fonts-tests/text-field-page.ts | 1 + .../app/fonts-tests/text-view-page.ts | 1 + .../app/image-view/stretch-modes-page.ts | 4 +- .../app/issues/issue-3714-page.ts | 2 +- e2e/ui-tests-app/app/issues/main-page.ts | 2 +- .../app/layouts/passThroughParent-page.ts | 2 +- .../app/list-picker/issue_2895-page.ts | 2 +- .../list-picker-json-array-page.ts | 2 +- e2e/ui-tests-app/app/list-picker/main-page.ts | 1 + .../app/list-view/dynamic-templates-page.ts | 4 +- .../app/list-view/item-re-layout-page.ts | 2 +- .../app/list-view/list-view-page.ts | 9 +- .../app/list-view/main-view-model.ts | 7 +- e2e/ui-tests-app/app/main-page-view-model.ts | 4 +- e2e/ui-tests-app/app/main-page.ts | 4 +- e2e/ui-tests-app/app/modal-view/login-page.ts | 4 +- .../app/modal-view/modal-view-page.ts | 2 +- e2e/ui-tests-app/app/page/main-page.ts | 1 + .../app/page/status-bar-css-page.ts | 2 +- e2e/ui-tests-app/app/perf/main-page.ts | 3 +- .../app/perf/properties/main-page.ts | 1 + e2e/ui-tests-app/app/perf/properties/tests.ts | 15 +- .../app/progress-bar/main-page.ts | 3 +- e2e/ui-tests-app/app/scroll-view/main-page.ts | 1 + .../app/search-bar/issue-5039-page.ts | 4 +- .../app/search-bar/issue-5039-view-model.ts | 16 +- e2e/ui-tests-app/app/tab-view/main-page.ts | 1 + .../app/tab-view/text-transform-page.ts | 2 +- e2e/ui-tests-app/app/tabs/main-page.ts | 2 +- .../app/test-page-main-view-model.ts | 9 +- .../app/text-view/hint-text-color-page.ts | 11 +- e2e/ui-tests-app/app/text-view/main-page.ts | 1 + e2e/ui-tests-app/app/web-view/main-page.ts | 1 + .../app/web-view/query-params-page.ts | 8 +- e2e/ui-tests-app/e2e/helpers/image-helper.ts | 12 +- .../background/button-background-page.ts | 2 +- .../background/button-background.e2e-spec.ts | 2 +- tests/app/app.ts | 2 +- .../application-settings-tests.ts | 6 +- .../application/application-tests.android.ts | 2 +- tests/app/color/color-tests.ts | 14 +- tests/app/connectivity/connectivity-tests.ts | 6 +- tests/app/console/console-tests.ts | 12 +- tests/app/data/observable-tests.ts | 76 +- tests/app/data/virtual-array-tests.ts | 8 +- tests/app/debugger/dom-node-tests.ts | 22 +- tests/app/fetch/fetch-tests.ts | 6 +- .../file-name-resolver-tests.ts | 50 +- .../file-system-access-tests.ts | 8 +- tests/app/file-system/file-system-tests.ts | 15 +- tests/app/fps-meter/fps-meter-tests.ts | 4 +- tests/app/http/http-tests.ts | 6 +- .../app/image-source/image-source-snippet.ts | 2 +- tests/app/navigation/navigation-tests.ts | 13 +- tests/app/navigation/transition-tests.ts | 10 +- tests/app/pages/file-load-test.ts | 3 +- .../pages/navigation/pageA-new-activity.ts | 3 +- tests/app/pages/navigation/pageA.ts | 3 +- .../pages/navigation/pageB-new-activity.ts | 3 +- tests/app/pages/navigation/pageB.ts | 3 +- .../pages/navigation/pageC-new-activity.ts | 3 +- tests/app/pages/navigation/pageC.ts | 3 +- tests/app/pages/page10.ts | 3 +- tests/app/pages/page11.ts | 5 +- tests/app/pages/page12.ts | 3 +- tests/app/pages/page13.ts | 4 +- tests/app/pages/page15.ts | 3 +- tests/app/pages/page16.ts | 3 +- tests/app/pages/page5.ts | 29 +- tests/app/pages/page6.ts | 3 +- tests/app/pages/page7.ts | 7 +- tests/app/pages/page8.ts | 2 + tests/app/pages/page9.ts | 3 +- tests/app/pages/performance-test/test-big.ts | 4 +- tests/app/pages/property-bindings.ts | 7 +- tests/app/platform/platform-tests.ts | 6 +- tests/app/profiling/profiling-tests.ts | 9 +- tests/app/text/formatted-string-tests.ts | 10 +- tests/app/timer/timer-tests.ts | 28 +- tests/app/trace/trace-error-tests.ts | 18 +- tests/app/trace/trace-tests.ts | 8 +- tests/app/ui-helper.ts | 15 +- tests/app/ui-test.ts | 1 + .../ui/action-bar/action-bar-tests-common.ts | 29 +- .../app/ui/action-bar/action-bar-tests.ios.ts | 8 +- .../activity-indicator-tests.ts | 10 +- tests/app/ui/animation/animation-tests.ts | 13 +- tests/app/ui/animation/css-animation-tests.ts | 8 +- .../bottom-navigation-navigation-tests.ts | 17 +- .../bottom-navigation-tests-native.android.ts | 7 +- .../bottom-navigation-tests.ts | 34 +- tests/app/ui/builder/builder-tests.ts | 3 +- .../ui/button/button-tests-native.android.ts | 5 +- tests/app/ui/button/button-tests.ts | 79 +- tests/app/ui/core/bindable/bindable-tests.ts | 80 +- .../bindable/binding-expressions-tests.ts | 24 +- .../weak-event-listener-tests.ts | 10 +- tests/app/ui/date-picker/date-picker-tests.ts | 3 +- tests/app/ui/dialogs/dialog-tests.ts | 6 +- tests/app/ui/frame/frame-tests-common.ts | 6 +- tests/app/ui/frame/frame-tests.android.ts | 2 +- tests/app/ui/gestures/gestures-tests.ts | 40 +- tests/app/ui/html-view/html-view-tests.ts | 7 +- tests/app/ui/image-cache/image-cache-tests.ts | 6 +- tests/app/ui/image/image-tests.ts | 6 +- .../ui/label/label-tests-native.android.ts | 4 +- tests/app/ui/label/label-tests-native.ios.ts | 3 +- tests/app/ui/label/label-tests.ts | 23 +- tests/app/ui/layouts/dock-layout-tests.ts | 9 +- tests/app/ui/layouts/flexbox-layout-tests.ts | 17 +- tests/app/ui/layouts/grid-layout-tests.ts | 6 +- tests/app/ui/layouts/layout-helper.android.ts | 5 +- tests/app/ui/layouts/layout-helper.ios.ts | 14 +- tests/app/ui/layouts/layout-tests-helper.ts | 8 +- tests/app/ui/layouts/safe-area-tests.ts | 25 +- tests/app/ui/layouts/stack-layout-tests.ts | 6 +- tests/app/ui/layouts/wrap-layout-tests.ts | 6 +- tests/app/ui/lifecycle/lifecycle-tests.ts | 2 +- .../app/ui/lifecycle/pages/button-counter.ts | 3 + tests/app/ui/list-picker/list-picker-tests.ts | 34 +- .../ui/list-view/list-view-safe-area-tests.ts | 11 +- tests/app/ui/list-view/list-view-tests.ts | 23 +- tests/app/ui/page/modal-tab-root.ts | 2 +- tests/app/ui/page/page-tests-common.ts | 119 ++- tests/app/ui/page/page-tests.android.ts | 9 +- tests/app/ui/page/page-tests.ios.ts | 6 +- tests/app/ui/placeholder/placeholder-tests.ts | 6 +- tests/app/ui/progress/progress-tests.ts | 20 +- .../proxy-view-container-tests.ts | 29 +- .../ui/repeater/repeater-safe-area-tests.ts | 7 +- tests/app/ui/repeater/repeater-tests.ts | 50 +- .../repeaterItems-bindingToGestures-page.ts | 8 +- .../app/ui/root-view/reset-root-view-tests.ts | 10 +- tests/app/ui/root-view/root-view-tests.ts | 4 +- .../scroll-view-safe-area-tests.ts | 9 +- tests/app/ui/scroll-view/scroll-view-tests.ts | 3 +- .../ui/search-bar/search-bar-code-snippet.ts | 2 +- .../search-bar-tests-native.android.ts | 3 + .../search-bar/search-bar-tests-native.ios.ts | 5 +- tests/app/ui/search-bar/search-bar-tests.ts | 7 +- .../segmented-bar-tests-native.ios.ts | 3 +- .../ui/segmented-bar/segmented-bar-tests.ts | 34 +- tests/app/ui/slider/slider-tests.ts | 54 +- .../app/ui/styling/style-properties-tests.ts | 12 +- tests/app/ui/styling/style-tests.ts | 106 +- tests/app/ui/styling/value-source-tests.ts | 6 +- tests/app/ui/styling/visual-state-tests.ts | 14 +- tests/app/ui/switch/switch-tests.ts | 21 +- .../ui/tab-view/tab-view-navigation-tests.ts | 17 +- .../tab-view/tab-view-tests-native.android.ts | 9 +- tests/app/ui/tab-view/tab-view-tests.ts | 38 +- tests/app/ui/tabs/tabs-navigation-tests.ts | 17 +- .../app/ui/tabs/tabs-tests-native.android.ts | 7 +- tests/app/ui/tabs/tabs-tests.ts | 30 +- .../text-field-tests-native.android.ts | 6 +- tests/app/ui/text-field/text-field-tests.ts | 92 +- .../text-view-tests-native.android.ts | 5 +- tests/app/ui/text-view/text-view-tests.ts | 75 +- tests/app/ui/time-picker/time-picker-tests.ts | 3 +- tests/app/ui/view/view-tests-common.ts | 156 +-- tests/app/ui/view/view-tests-layout-event.ts | 16 +- tests/app/ui/view/view-tests.android.ts | 12 +- tests/app/ui/view/view-tests.ios.ts | 2 + .../app/ui/web-view/web-view-code-snippet.ts | 2 +- .../ui/web-view/web-view-safe-area-tests.ts | 7 +- tests/app/ui/web-view/web-view-tests.ts | 1 + tests/app/utils/utils-tests.ts | 10 +- tests/app/xhr/xhr-tests.ts | 26 +- tests/app/xml-declaration/mainPage.ts | 10 +- .../mymodulewithxml/TabViewParentChainPage.ts | 2 +- .../template-builder-tests/template-view.ts | 6 +- .../xml-declaration/xml-declaration-tests.ts | 115 +-- .../app/xml-parser-tests/xml-parser-tests.ts | 6 +- .../application-settings.android.ts | 6 +- .../application/application-common.ts | 6 +- .../application/application.android.ts | 17 +- .../application/application.ios.ts | 11 +- tns-core-modules/bundle-entry-points.ts | 80 +- tns-core-modules/color/color-common.ts | 4 +- tns-core-modules/color/color.ios.ts | 3 +- tns-core-modules/color/known-colors.ts | 3 +- .../connectivity/connectivity.android.ts | 6 +- .../connectivity/connectivity.ios.ts | 5 +- tns-core-modules/css/parser.ts | 114 ++- .../data/observable-array/observable-array.ts | 3 + .../data/observable/observable.ts | 7 +- .../debugger/InspectorBackendCommands.ios.ts | 932 +++++++++--------- tns-core-modules/debugger/debugger.ts | 11 +- .../debugger/devtools-elements.android.ts | 2 +- .../debugger/devtools-elements.common.ts | 1 + .../debugger/devtools-elements.ios.ts | 2 +- tns-core-modules/debugger/dom-node.ts | 3 + .../debugger/webinspector-css.ios.ts | 2 +- .../debugger/webinspector-dom.ios.ts | 1 + .../debugger/webinspector-network.ios.ts | 6 +- .../file-name-resolver/file-name-resolver.ts | 16 +- .../file-system/file-system-access.android.ts | 17 +- .../file-system/file-system-access.ios.ts | 18 +- tns-core-modules/file-system/file-system.ts | 51 +- tns-core-modules/fps-meter/fps-meter.ts | 4 +- .../fps-meter/fps-native.android.ts | 2 +- tns-core-modules/fps-meter/fps-native.ios.ts | 3 +- tns-core-modules/globals/globals.ts | 25 +- .../http/http-request/http-request-common.ts | 1 + .../http/http-request/http-request.android.ts | 33 +- .../http/http-request/http-request.ios.ts | 19 +- .../image-asset/image-asset-common.ts | 1 + .../image-asset/image-asset.ios.ts | 4 +- .../image-source/image-source.android.ts | 15 +- .../image-source/image-source.ios.ts | 14 +- tns-core-modules/matrix/matrix.ts | 4 +- tns-core-modules/platform/platform.android.ts | 3 +- tns-core-modules/profiling/profiling.ts | 17 +- tns-core-modules/text/formatted-string.ts | 4 +- tns-core-modules/timer/timer.android.ts | 3 +- tns-core-modules/timer/timer.ios.ts | 9 +- tns-core-modules/trace/trace.ts | 3 +- .../ui/action-bar/action-bar-common.ts | 4 +- .../ui/action-bar/action-bar.android.ts | 6 + .../ui/action-bar/action-bar.ios.ts | 11 +- .../activity-indicator.android.ts | 7 +- .../activity-indicator.ios.ts | 1 + .../ui/animation/animation-common.ts | 5 +- .../ui/animation/animation.android.ts | 10 +- .../ui/animation/animation.ios.ts | 9 +- .../ui/animation/keyframe-animation.ts | 2 + tns-core-modules/ui/border/border.ts | 1 + .../bottom-navigation.android.ts | 12 +- .../bottom-navigation.ios.ts | 19 +- .../ui/builder/binding-builder.ts | 7 +- tns-core-modules/ui/builder/builder.ts | 29 +- .../component-builder/component-builder.ts | 4 +- tns-core-modules/ui/button/button-common.ts | 4 +- tns-core-modules/ui/button/button.android.ts | 12 +- tns-core-modules/ui/button/button.ios.ts | 5 +- tns-core-modules/ui/core/bindable/bindable.ts | 22 +- .../ui/core/properties/properties.ts | 15 +- .../ui/core/view-base/view-base.ts | 18 +- tns-core-modules/ui/core/view/view-common.ts | 19 +- tns-core-modules/ui/core/view/view.android.ts | 57 +- tns-core-modules/ui/core/view/view.ios.ts | 19 +- .../weak-event-listener.ts | 3 +- .../ui/date-picker/date-picker.android.ts | 6 +- .../ui/date-picker/date-picker.ios.ts | 4 +- tns-core-modules/ui/dialogs/dialogs-common.ts | 5 +- .../ui/dialogs/dialogs.android.ts | 7 +- .../editable-text-base-common.ts | 2 +- .../editable-text-base.android.ts | 3 +- .../editable-text-base.ios.ts | 7 +- tns-core-modules/ui/enums/enums.ts | 5 +- tns-core-modules/ui/frame/activity.android.ts | 1 + tns-core-modules/ui/frame/fragment.android.ts | 2 + .../ui/frame/fragment.transitions.android.ts | 7 +- .../ui/frame/fragment.transitions.ios.ts | 3 +- tns-core-modules/ui/frame/frame-common.ts | 20 +- tns-core-modules/ui/frame/frame.android.ts | 11 +- tns-core-modules/ui/frame/frame.ios.ts | 19 +- .../ui/gestures/gestures.android.ts | 17 +- tns-core-modules/ui/gestures/gestures.ios.ts | 7 +- .../ui/html-view/html-view.ios.ts | 3 +- .../ui/image-cache/image-cache-common.ts | 6 +- .../ui/image-cache/image-cache.android.ts | 6 +- tns-core-modules/ui/image/image-common.ts | 4 +- tns-core-modules/ui/image/image.android.ts | 4 +- tns-core-modules/ui/image/image.ios.ts | 2 + tns-core-modules/ui/label/label.android.ts | 5 +- tns-core-modules/ui/label/label.ios.ts | 12 +- .../absolute-layout/absolute-layout-common.ts | 3 +- .../absolute-layout.android.ts | 8 +- .../layouts/dock-layout/dock-layout-common.ts | 3 +- .../dock-layout/dock-layout.android.ts | 4 +- .../ui/layouts/dock-layout/dock-layout.ios.ts | 3 +- .../flexbox-layout/flexbox-layout-common.ts | 11 +- .../flexbox-layout/flexbox-layout.android.ts | 14 +- .../flexbox-layout/flexbox-layout.ios.ts | 19 +- .../layouts/grid-layout/grid-layout-common.ts | 5 +- .../grid-layout/grid-layout.android.ts | 4 +- .../ui/layouts/grid-layout/grid-layout.ios.ts | 8 +- .../ui/layouts/layout-base-common.ts | 3 +- .../ui/layouts/layout-base.android.ts | 12 +- .../ui/layouts/layout-base.ios.ts | 2 +- .../stack-layout/stack-layout.android.ts | 4 +- .../layouts/stack-layout/stack-layout.ios.ts | 12 +- .../wrap-layout/wrap-layout.android.ts | 4 +- .../ui/list-picker/list-picker.android.ts | 12 +- .../ui/list-picker/list-picker.ios.ts | 9 +- .../ui/list-view/list-view-common.ts | 8 +- .../ui/list-view/list-view.android.ts | 9 +- .../ui/list-view/list-view.ios.ts | 25 +- tns-core-modules/ui/page/page-common.ts | 4 +- tns-core-modules/ui/page/page.android.ts | 6 +- tns-core-modules/ui/page/page.ios.ts | 3 +- .../ui/placeholder/placeholder.android.ts | 5 +- .../ui/placeholder/placeholder.ts | 5 +- .../ui/progress/progress-common.ts | 8 +- .../proxy-view-container.ts | 9 +- tns-core-modules/ui/repeater/repeater.ts | 4 +- .../ui/scroll-view/scroll-view.android.ts | 10 +- .../ui/scroll-view/scroll-view.ios.ts | 4 +- .../ui/search-bar/search-bar.android.ts | 14 +- .../ui/search-bar/search-bar.ios.ts | 7 +- .../ui/segmented-bar/segmented-bar.android.ts | 8 +- .../ui/segmented-bar/segmented-bar.ios.ts | 7 +- tns-core-modules/ui/slider/slider-common.ts | 5 +- tns-core-modules/ui/slider/slider.android.ts | 6 +- tns-core-modules/ui/slider/slider.ios.ts | 3 +- .../ui/styling/background-common.ts | 31 +- .../ui/styling/background.android.ts | 10 +- tns-core-modules/ui/styling/background.ios.ts | 13 +- tns-core-modules/ui/styling/converters.ts | 3 +- .../ui/styling/css-animation-parser.ts | 1 + .../ui/styling/css-selector/css-selector.ts | 22 +- tns-core-modules/ui/styling/font-common.ts | 7 +- tns-core-modules/ui/styling/font.android.ts | 3 +- tns-core-modules/ui/styling/font.ios.ts | 8 +- .../ui/styling/linear-gradient.ts | 5 +- .../ui/styling/style-properties.ts | 25 +- tns-core-modules/ui/styling/style-scope.ts | 16 +- tns-core-modules/ui/styling/style/style.ts | 2 +- tns-core-modules/ui/switch/switch.android.ts | 3 +- tns-core-modules/ui/switch/switch.ios.ts | 3 +- .../tab-navigation-base.ts | 4 +- .../tab-strip/tab-strip.ts | 4 +- .../ui/tab-view/tab-view-common.ts | 4 +- .../ui/tab-view/tab-view.android.ts | 14 +- tns-core-modules/ui/tab-view/tab-view.ios.ts | 21 +- tns-core-modules/ui/tabs/tabs.android.ts | 12 +- tns-core-modules/ui/tabs/tabs.ios.ts | 13 +- .../ui/text-base/text-base.android.ts | 14 +- .../ui/text-base/text-base.ios.ts | 4 +- .../ui/text-field/text-field.android.ts | 4 +- .../ui/text-field/text-field.ios.ts | 5 +- .../ui/text-view/text-view.ios.ts | 6 +- .../ui/time-picker/time-picker-common.ts | 5 +- .../ui/time-picker/time-picker.android.ts | 3 +- .../ui/time-picker/time-picker.ios.ts | 7 +- .../ui/transition/fade-transition.android.ts | 3 +- .../ui/transition/flip-transition.android.ts | 3 +- .../ui/transition/slide-transition.android.ts | 3 +- tns-core-modules/ui/utils.ios.ts | 1 + .../ui/web-view/web-view-common.ts | 3 +- .../ui/web-view/web-view.android.ts | 6 +- tns-core-modules/ui/web-view/web-view.ios.ts | 6 +- tns-core-modules/utils/debug.ts | 4 +- tns-core-modules/utils/lazy.ts | 1 + tns-core-modules/utils/types.ts | 6 +- tns-core-modules/utils/utils-common.ts | 13 +- tns-core-modules/utils/utils.android.ts | 17 +- tns-core-modules/utils/utils.ios.ts | 10 +- tns-core-modules/xhr/xhr.ts | 3 + tns-core-modules/xml/xml.ts | 7 +- 399 files changed, 3101 insertions(+), 2210 deletions(-) diff --git a/build/tslint.json b/build/tslint.json index c457ffe31..4180d428a 100644 --- a/build/tslint.json +++ b/build/tslint.json @@ -8,6 +8,7 @@ "indent": [true, "spaces", 4], "jsdoc-format": false, "max-line-length": [false, 120], + "newline-before-return": true, "no-arg": true, "no-bitwise": false, "no-consecutive-blank-lines": true, @@ -16,6 +17,7 @@ "no-duplicate-variable": true, "no-empty": true, "no-eval": true, + "no-irregular-whitespace": true, "no-string-literal": false, "no-trailing-whitespace": false, "no-unused-expression": true, @@ -29,7 +31,7 @@ ], "quotemark": [true, "double"], "radix": false, - "semicolon": false, + "semicolon": true, "triple-equals": [true, "allow-null-check"], "typedef": [false, "callSignature", diff --git a/e2e/animation/e2e/screen.ts b/e2e/animation/e2e/screen.ts index 74a39efcc..7bbbea12f 100644 --- a/e2e/animation/e2e/screen.ts +++ b/e2e/animation/e2e/screen.ts @@ -1,13 +1,13 @@ import { AppiumDriver } from "nativescript-dev-appium"; import { assert } from "chai"; -const home = "Home" +const home = "Home"; const chainingWithAnimationSet = "chaining-with-animation-set"; const animateSequentially = "Animate Sequentially"; export class Screen { - private _driver: AppiumDriver + private _driver: AppiumDriver; constructor(driver: AppiumDriver) { this._driver = driver; diff --git a/e2e/cuteness.io/app/reddit-item-view-model-page.ts b/e2e/cuteness.io/app/reddit-item-view-model-page.ts index 4c1ad3524..a876930f5 100644 --- a/e2e/cuteness.io/app/reddit-item-view-model-page.ts +++ b/e2e/cuteness.io/app/reddit-item-view-model-page.ts @@ -1,4 +1,4 @@ -import { Observable } from "tns-core-modules/data/observable"; +import { Observable } from "tns-core-modules/data/observable"; import { ImageSource, fromFile as imageSourceFromFile, fromUrl as imageSourceFromUrl } from "tns-core-modules/image-source"; import { ItemData } from "./reddit-model"; @@ -54,7 +54,7 @@ export class RedditViewModel extends Observable { var url = this._source.thumbnail; if (!_isValidImageUrl(url)) { - return defaultNoThumbnailImageSource + return defaultNoThumbnailImageSource; } var image = cache.get(url); diff --git a/e2e/modal-navigation/app/android-back-button/android-back-button-page.ts b/e2e/modal-navigation/app/android-back-button/android-back-button-page.ts index dcf20cde3..5619bad75 100644 --- a/e2e/modal-navigation/app/android-back-button/android-back-button-page.ts +++ b/e2e/modal-navigation/app/android-back-button/android-back-button-page.ts @@ -1,5 +1,5 @@ import { android as androidApp, AndroidActivityBackPressedEventData } from "tns-core-modules/application"; -import { fromObject, Observable } from "tns-core-modules/data/observable" +import { fromObject, Observable } from "tns-core-modules/data/observable"; let context: Observable; function activityBackPressedCallback(args: AndroidActivityBackPressedEventData) { diff --git a/e2e/modal-navigation/app/home/home-page.ts b/e2e/modal-navigation/app/home/home-page.ts index 2746f8df1..f939bb398 100644 --- a/e2e/modal-navigation/app/home/home-page.ts +++ b/e2e/modal-navigation/app/home/home-page.ts @@ -28,7 +28,7 @@ export function onModalNoPage(args: EventData) { fullscreen: false }); - view.showModal("modal-no-page/modal-no-page", { + view.showModal("modal-no-page/modal-no-page", { context: "context", closeCallback: () => console.log("home-page modal frame closed"), fullscreen: false @@ -44,7 +44,7 @@ export function onPopoverModal(args: EventData) { ios: { presentationStyle: UIModalPresentationStyle.Popover } - } + }; view.showModal("modal-no-page/modal-no-page", options); } @@ -85,8 +85,8 @@ export function onAndroidBackEvents(args: EventData) { view.showModal("android-back-button/android-back-button-page", { context: null, closeCallback: () => console.log("android-back-button modal page layout closed"), - fullscreen: true, - animated: true, + fullscreen: true, + animated: true, stretched: true }); } diff --git a/e2e/modal-navigation/app/modal-no-page/modal-no-page.ts b/e2e/modal-navigation/app/modal-no-page/modal-no-page.ts index 773e67664..d00d2a3f0 100644 --- a/e2e/modal-navigation/app/modal-no-page/modal-no-page.ts +++ b/e2e/modal-navigation/app/modal-no-page/modal-no-page.ts @@ -16,9 +16,9 @@ export function showDialog(args: EventData) { okButtonText: "Yes", cancelButtonText: "No" - } + }; confirm(options).then((result: boolean) => { console.log(result); - }) + }); } \ No newline at end of file diff --git a/e2e/modal-navigation/app/modal/modal-page.ts b/e2e/modal-navigation/app/modal/modal-page.ts index 2ba9f99aa..9d632e5d6 100644 --- a/e2e/modal-navigation/app/modal/modal-page.ts +++ b/e2e/modal-navigation/app/modal/modal-page.ts @@ -75,9 +75,9 @@ export function showDialog(args: EventData) { okButtonText: "Yes", cancelButtonText: "No" - } + }; confirm(options).then((result: boolean) => { console.log(result); - }) + }); } \ No newline at end of file diff --git a/e2e/modal-navigation/e2e/android-back-button.e2e-spec.ts b/e2e/modal-navigation/e2e/android-back-button.e2e-spec.ts index c9a4db3a8..346bdbf6c 100644 --- a/e2e/modal-navigation/e2e/android-back-button.e2e-spec.ts +++ b/e2e/modal-navigation/e2e/android-back-button.e2e-spec.ts @@ -1,5 +1,5 @@ import { AppiumDriver, createDriver, SearchOptions, nsCapabilities } from "nativescript-dev-appium"; -import { Screen, driverDefaultWaitTime, elementDefaultWaitTimeInSeconds } from "./screen" +import { Screen, driverDefaultWaitTime, elementDefaultWaitTimeInSeconds } from "./screen"; import { assert } from "chai"; const exampleAndroidBackBtnEvents = "Android Back Btn Events"; @@ -37,5 +37,5 @@ describe("android-navigate-back", async function () { assert.isTrue(textElement !== null); await driver.navBack(); await screen.loadedHome(); - }) -}) \ No newline at end of file + }); +}); \ No newline at end of file diff --git a/e2e/modal-navigation/e2e/modal-frame.e2e-spec.ts b/e2e/modal-navigation/e2e/modal-frame.e2e-spec.ts index 5b9b636c2..e8e1a7480 100644 --- a/e2e/modal-navigation/e2e/modal-frame.e2e-spec.ts +++ b/e2e/modal-navigation/e2e/modal-frame.e2e-spec.ts @@ -1,5 +1,5 @@ import { AppiumDriver, createDriver, nsCapabilities } from "nativescript-dev-appium"; -import { Screen, driverDefaultWaitTime } from "./screen" +import { Screen, driverDefaultWaitTime } from "./screen"; import { roots, modalFrameBackground, @@ -8,7 +8,7 @@ import { testNestedModalFrameBackground, testNestedModalPageBackground, testDialogBackground -} from "./shared.e2e-spec" +} from "./shared.e2e-spec"; describe("modal-frame:", async function () { @@ -76,5 +76,5 @@ describe("modal-frame:", async function () { await testSecondPageBackground(driver, screen); }); }); - }; + } }); diff --git a/e2e/modal-navigation/e2e/modal-layout.e2e-spec.ts b/e2e/modal-navigation/e2e/modal-layout.e2e-spec.ts index 1f3ab483e..c6b3555f6 100644 --- a/e2e/modal-navigation/e2e/modal-layout.e2e-spec.ts +++ b/e2e/modal-navigation/e2e/modal-layout.e2e-spec.ts @@ -1,5 +1,5 @@ import { AppiumDriver, createDriver, nsCapabilities } from "nativescript-dev-appium"; -import { Screen, driverDefaultWaitTime } from "./screen" +import { Screen, driverDefaultWaitTime } from "./screen"; import { roots, modalFrameBackground, @@ -8,7 +8,7 @@ import { testNestedModalFrameBackground, testNestedModalPageBackground, testDialogBackground -} from "./shared.e2e-spec" +} from "./shared.e2e-spec"; describe("modal-layout:", async function () { @@ -80,5 +80,5 @@ describe("modal-layout:", async function () { await testSecondPageBackground(driver, screen); }); }); - }; + } }); diff --git a/e2e/modal-navigation/e2e/modal-page.e2e-spec.ts b/e2e/modal-navigation/e2e/modal-page.e2e-spec.ts index 94dd21502..9f65a6b38 100644 --- a/e2e/modal-navigation/e2e/modal-page.e2e-spec.ts +++ b/e2e/modal-navigation/e2e/modal-page.e2e-spec.ts @@ -1,12 +1,12 @@ import { AppiumDriver, createDriver, nsCapabilities } from "nativescript-dev-appium"; -import { Screen, driverDefaultWaitTime } from "./screen" +import { Screen, driverDefaultWaitTime } from "./screen"; import { roots, modalPageBackground, testNestedModalFrameBackground, testNestedModalPageBackground, testDialogBackground -} from "./shared.e2e-spec" +} from "./shared.e2e-spec"; describe("modal-page:", async function () { @@ -65,5 +65,5 @@ describe("modal-page:", async function () { await testNestedModalPageBackground(driver, screen, false); }); }); - }; + } }); diff --git a/e2e/modal-navigation/e2e/modal-tab.e2e-spec.ts b/e2e/modal-navigation/e2e/modal-tab.e2e-spec.ts index adebdb90d..daebb6a13 100644 --- a/e2e/modal-navigation/e2e/modal-tab.e2e-spec.ts +++ b/e2e/modal-navigation/e2e/modal-tab.e2e-spec.ts @@ -1,5 +1,5 @@ import { AppiumDriver, createDriver, nsCapabilities } from "nativescript-dev-appium"; -import { Screen, driverDefaultWaitTime } from "./screen" +import { Screen, driverDefaultWaitTime } from "./screen"; import { roots, modalTabViewBackground, @@ -9,7 +9,7 @@ import { testNestedModalPageBackground, testSecondItemBackground, testDialogBackground -} from "./shared.e2e-spec" +} from "./shared.e2e-spec"; describe("modal-tab:", () => { @@ -84,5 +84,5 @@ describe("modal-tab:", () => { await testSecondPageBackground(driver, screen); }); }); - }; + } }); diff --git a/e2e/modal-navigation/e2e/screen.ts b/e2e/modal-navigation/e2e/screen.ts index 8b28e6915..ac2d22ae8 100644 --- a/e2e/modal-navigation/e2e/screen.ts +++ b/e2e/modal-navigation/e2e/screen.ts @@ -1,8 +1,8 @@ import { AppiumDriver } from "nativescript-dev-appium"; import { assert } from "chai"; -const home = "Home" -const first = "First" +const home = "Home"; +const first = "First"; const modal = "Modal"; const modalFirst = "Modal First"; const dialogConfirm = "Dialog"; @@ -33,7 +33,7 @@ export const elementDefaultWaitTimeInSeconds = 10; export class Screen { - private _driver: AppiumDriver + private _driver: AppiumDriver; constructor(driver: AppiumDriver) { this._driver = driver; diff --git a/e2e/modal-navigation/e2e/shared.e2e-spec.ts b/e2e/modal-navigation/e2e/shared.e2e-spec.ts index 72cf61a31..189e68705 100644 --- a/e2e/modal-navigation/e2e/shared.e2e-spec.ts +++ b/e2e/modal-navigation/e2e/shared.e2e-spec.ts @@ -1,5 +1,5 @@ import { AppiumDriver } from "nativescript-dev-appium"; -import { Screen } from "./screen" +import { Screen } from "./screen"; const time = 1; diff --git a/e2e/nested-frame-navigation/e2e/frame-root.e2e-spec.ts b/e2e/nested-frame-navigation/e2e/frame-root.e2e-spec.ts index 8e38b6702..1e36927a5 100644 --- a/e2e/nested-frame-navigation/e2e/frame-root.e2e-spec.ts +++ b/e2e/nested-frame-navigation/e2e/frame-root.e2e-spec.ts @@ -92,7 +92,7 @@ describe(rootType, async function () { if (appSuspendResume) { await driver.backgroundApp(suspendTime); - await screen.loadedSomePage() // wait for some page + await screen.loadedSomePage(); // wait for some page } if (driver.isAndroid) { @@ -116,7 +116,7 @@ describe(rootType, async function () { if (appSuspendResume) { await driver.backgroundApp(suspendTime); - await screen.loadedSomePage() // wait for some page + await screen.loadedSomePage(); // wait for some page } if (driver.isAndroid) { @@ -166,7 +166,7 @@ describe(rootType, async function () { if (appSuspendResume) { await driver.backgroundApp(suspendTime); - await screen.loadedElement(playerOne.name) // wait for players list + await screen.loadedElement(playerOne.name); // wait for players list } await shared.testPlayerNavigated(playerTwo, screen); diff --git a/e2e/nested-frame-navigation/e2e/frame-tab-root.e2e-spec.ts b/e2e/nested-frame-navigation/e2e/frame-tab-root.e2e-spec.ts index f46a10e5f..00339c262 100644 --- a/e2e/nested-frame-navigation/e2e/frame-tab-root.e2e-spec.ts +++ b/e2e/nested-frame-navigation/e2e/frame-tab-root.e2e-spec.ts @@ -82,14 +82,14 @@ describe(rootType, async function () { if (appSuspendResume) { await driver.backgroundApp(suspendTime); - await screen.loadedElement(playerTwo.name) // wait for player + await screen.loadedElement(playerTwo.name); // wait for player } await shared.testPlayerNavigatedBack(screen, driver); if (appSuspendResume) { await driver.backgroundApp(suspendTime); - await driver.waitForElement(playerOne.name) // wait for players list + await driver.waitForElement(playerOne.name); // wait for players list } await shared.testPlayerNavigated(playerTwo, screen); @@ -101,7 +101,7 @@ describe(rootType, async function () { if (appSuspendResume) { await driver.backgroundApp(suspendTime); - await screen.loadedElement(somePage) // wait for some page + await screen.loadedElement(somePage); // wait for some page } if (driver.isAndroid) { @@ -259,7 +259,7 @@ describe(rootType, async function () { await screen.loadedHome(); }); }); - }; + } }); } }); \ No newline at end of file diff --git a/e2e/nested-frame-navigation/e2e/issues.e2e.spec.ts b/e2e/nested-frame-navigation/e2e/issues.e2e.spec.ts index e4a17c940..ae89f99b4 100644 --- a/e2e/nested-frame-navigation/e2e/issues.e2e.spec.ts +++ b/e2e/nested-frame-navigation/e2e/issues.e2e.spec.ts @@ -36,7 +36,7 @@ describe("issues", async function () { const somePageBtn = await driver.waitForElement("somePageOnRoot"); await somePageBtn.tap(); await screen.loadedSomePage(); - } + }; await showSomePage(); diff --git a/e2e/nested-frame-navigation/e2e/layout-root.e2e-spec.ts b/e2e/nested-frame-navigation/e2e/layout-root.e2e-spec.ts index a153ac9a7..e096affad 100644 --- a/e2e/nested-frame-navigation/e2e/layout-root.e2e-spec.ts +++ b/e2e/nested-frame-navigation/e2e/layout-root.e2e-spec.ts @@ -13,7 +13,7 @@ describe(rootType, async function () { nsCapabilities.testReporter.context = this; driver = await createDriver(); screen = new Screen(driver); - logWarn("====== layout-root ========") + logWarn("====== layout-root ========"); if (dontKeepActivities) { await driver.setDontKeepActivities(true); } @@ -72,7 +72,7 @@ describe(rootType, async function () { if (appSuspendResume) { await driver.backgroundApp(suspendTime); - await driver.waitForElement(playerTwo.name) // wait for player + await driver.waitForElement(playerTwo.name); // wait for player } await shared.testPlayerNavigatedBack(screen, driver); @@ -158,14 +158,14 @@ describe(rootType, async function () { if (appSuspendResume) { await driver.backgroundApp(suspendTime); - await driver.waitForElement(playerTwo.name) // wait for player + await driver.waitForElement(playerTwo.name); // wait for player } await shared.testPlayerNavigatedBack(screen, driver); if (appSuspendResume) { await driver.backgroundApp(suspendTime); - await driver.waitForElement(playerOne.name) // wait for players list + await driver.waitForElement(playerOne.name); // wait for players list } await shared.testPlayerNavigated(playerTwo, screen); @@ -306,7 +306,7 @@ describe(rootType, async function () { await screen.loadedHome(); }); }); - }; + } describe(`${rootType}-players-list-slide-transition with parent frame default transition:`, async function () { const playerOne = playersData["playerOneSlide"]; diff --git a/e2e/nested-frame-navigation/e2e/screen.ts b/e2e/nested-frame-navigation/e2e/screen.ts index ee4ba7318..0f575d760 100644 --- a/e2e/nested-frame-navigation/e2e/screen.ts +++ b/e2e/nested-frame-navigation/e2e/screen.ts @@ -86,7 +86,7 @@ export const playersData = { description: "Defender", transition: "flip" } -} +}; export const teamsData = { teamOneDefault: { @@ -129,7 +129,7 @@ export const teamsData = { description: "u21", transition: "flip" }, -} +}; export interface Item { name: string; description: string; @@ -137,7 +137,7 @@ export interface Item { export class Screen { - private _driver: AppiumDriver + private _driver: AppiumDriver; public currentAnimation: string; @@ -147,7 +147,7 @@ export class Screen { navigateToLayoutWithFrame = async () => { await this.navigateToPage(layoutWithFrame); - }; + } navigateToLayoutWithMultiFrame = async () => { await this.navigateToPage(layoutWithMultiFrame); @@ -183,23 +183,23 @@ export class Screen { navigateToStillOtherPageSlide = async () => { await this.navigateToPage(navigateToStillOtherPageSlide); - }; + } navigateToSomePageDefault = async () => { await this.navigateToPage(navigateToSomePageDefault); - }; + } navigateToSomePageNone = async () => { await this.navigateToPage(navigateToSomePageNone); - }; + } navigateToSomePageSlide = async () => { await this.navigateToPage(navigateToSomePageSlide); - }; + } navigateToSomePageFlip = async () => { await this.navigateToPage(navigateToSomePageFlip); - }; + } navigateToOtherPageDefault = async () => { await this.navigateToPage(navigateToOtherPageDefault); @@ -219,26 +219,26 @@ export class Screen { navigateToPlayerDetails = async (player: Item) => { await this.navigateToItem(player); - }; + } navigateToTeamDetails = async (team: Item) => { await this.navigateToItem(team); - }; + } resetToHome = async () => { const btnReset = await this._driver.waitForElement(resetApp); - console.info(`====== Reset home "${resetApp}"`) + console.info(`====== Reset home "${resetApp}"`); await btnReset.tap(); - }; + } goBackToPlayersList = async () => { await this.goBack(playerBack); - }; + } goBackToTeamsList = async () => { await this.goBack(teamBack); - }; + } goBackFromStillOtherPage = async () => { await this.goBack(stillOtherPageBack); @@ -280,16 +280,16 @@ export class Screen { const lblHome = await this._driver.waitForElement(home); assert.isDefined(lblHome); console.log(home + " loaded!"); - }; + } loadedLayoutWithFrame = async () => { await this.loadedPage(layoutHome); - }; + } loadedLayoutWithMultiFrame = async () => { await this.loadedPage(layoutHome); await this.loadedPage(layoutHomeSecondary); - }; + } loadedPageWithFrame = async () => { await this.loadedPage(frameHome); @@ -351,19 +351,19 @@ export class Screen { const el = await this._driver.waitForElement(element); assert.isDefined(el); console.log(`${element} loaded!`); - }; + } private navigateToPage = async (page: string) => { const btnPage = await this._driver.waitForElement(page); logInfo(`====== Navigate to "${page}"`); await btnPage.tap(); - }; + } private loadedPage = async (page: string) => { const lblPage = await this._driver.waitForElement(page); assert.isDefined(lblPage); console.log(page + " loaded!"); - }; + } private navigateToItem = async (item: Item) => { const lblItem = await this._driver.waitForElement(item.name); diff --git a/e2e/nested-frame-navigation/e2e/tab-root.e2e-spec.ts b/e2e/nested-frame-navigation/e2e/tab-root.e2e-spec.ts index 8b8c536cf..e6b1af1ee 100644 --- a/e2e/nested-frame-navigation/e2e/tab-root.e2e-spec.ts +++ b/e2e/nested-frame-navigation/e2e/tab-root.e2e-spec.ts @@ -14,7 +14,7 @@ describe(rootType, async function () { before(async function () { nsCapabilities.testReporter.context = this; - logWarn(`====== ${rootType} ========`) + logWarn(`====== ${rootType} ========`); driver = await createDriver(); screen = new Screen(driver); if (dontKeepActivities) { @@ -85,14 +85,14 @@ describe(rootType, async function () { if (appSuspendResume) { await driver.backgroundApp(suspendTime); - await driver.waitForElement(playerTwo.name) // wait for player + await driver.waitForElement(playerTwo.name); // wait for player } await shared.testPlayerNavigatedBack(screen, driver); if (appSuspendResume) { await driver.backgroundApp(suspendTime); - await driver.waitForElement(playerOne.name) // wait for players list + await driver.waitForElement(playerOne.name); // wait for players list } await shared.testPlayerNavigated(playerTwo, screen); @@ -104,7 +104,7 @@ describe(rootType, async function () { if (appSuspendResume) { await driver.backgroundApp(suspendTime); - await driver.waitForElement(teamOne.name) // wait for teams list + await driver.waitForElement(teamOne.name); // wait for teams list } }); @@ -117,7 +117,7 @@ describe(rootType, async function () { if (appSuspendResume) { await driver.backgroundApp(suspendTime); - await driver.waitForElement(playerOne.name) // wait for players list + await driver.waitForElement(playerOne.name); // wait for players list } await screen.loadedPlayersList(); @@ -127,7 +127,7 @@ describe(rootType, async function () { if (driver.isIOS) { if (appSuspendResume) { await driver.backgroundApp(suspendTime); - await driver.waitForElement(playerTwo.name) // wait for player + await driver.waitForElement(playerTwo.name); // wait for player } } @@ -137,7 +137,7 @@ describe(rootType, async function () { // TODO: run in background from appium breaks the test. Investigate the issue, once with the app and with appium if (appSuspendResume) { await driver.backgroundApp(suspendTime); - await driver.waitForElement(teamOne.name) // wait for teams list + await driver.waitForElement(teamOne.name); // wait for teams list } } @@ -147,14 +147,14 @@ describe(rootType, async function () { if (appSuspendResume) { await driver.backgroundApp(suspendTime); - await driver.waitForElement(teamTwo.name) // wait for team + await driver.waitForElement(teamTwo.name); // wait for team } await screen.togglePlayersTab(); if (appSuspendResume) { await driver.backgroundApp(suspendTime); - await driver.waitForElement(playerTwo.name) // wait for player + await driver.waitForElement(playerTwo.name); // wait for player } await screen.loadedPlayerDetails(playerTwo); @@ -175,7 +175,7 @@ describe(rootType, async function () { await screen.loadedHome(); }); }); - }; + } }); } }); diff --git a/e2e/ui-tests-app/app/action-bar/action-item-position-page.ts b/e2e/ui-tests-app/app/action-bar/action-item-position-page.ts index e1b48be3c..1a8af7599 100644 --- a/e2e/ui-tests-app/app/action-bar/action-item-position-page.ts +++ b/e2e/ui-tests-app/app/action-bar/action-item-position-page.ts @@ -24,7 +24,7 @@ export class ActionItemPostitionView extends observable.Observable { set text(value: string) { if (this._text !== value) { this._text = value; - this.notifyPropertyChange("text", value) + this.notifyPropertyChange("text", value); } } diff --git a/e2e/ui-tests-app/app/action-bar/flat-tab-opaque-bar-page.ts b/e2e/ui-tests-app/app/action-bar/flat-tab-opaque-bar-page.ts index ad65ddedc..2c5e3504a 100644 --- a/e2e/ui-tests-app/app/action-bar/flat-tab-opaque-bar-page.ts +++ b/e2e/ui-tests-app/app/action-bar/flat-tab-opaque-bar-page.ts @@ -2,7 +2,7 @@ import { EventData } from "tns-core-modules/data/observable"; import { TabView } from "tns-core-modules/ui/tab-view"; export function onLoaded(args: EventData) { - console.log("TEST", args.object) + console.log("TEST", args.object); const tabView = args.object; tabView.ios.tabBar.translucent = false; } diff --git a/e2e/ui-tests-app/app/action-bar/icons-page.ts b/e2e/ui-tests-app/app/action-bar/icons-page.ts index b3ef18601..2d20576ac 100644 --- a/e2e/ui-tests-app/app/action-bar/icons-page.ts +++ b/e2e/ui-tests-app/app/action-bar/icons-page.ts @@ -1,4 +1,4 @@ -import * as frame from "tns-core-modules/ui/frame"; +import * as frame from "tns-core-modules/ui/frame"; import { EventData } from "tns-core-modules/ui/frame"; import { Button } from "tns-core-modules/ui/button"; import { ActionBar } from "tns-core-modules/ui/action-bar"; @@ -11,7 +11,7 @@ export function navigate() { export function onChangeRenderingMode(args: EventData) { const button =