Skip to content
This repository was archived by the owner on Dec 19, 2021. It is now read-only.

Commit 21eb3a3

Browse files
committed
fix lint
1 parent 06c066b commit 21eb3a3

File tree

4 files changed

+186
-131
lines changed

4 files changed

+186
-131
lines changed

src/loading-indicator.android.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import * as application from 'tns-core-modules/application';
22
import { Color } from 'tns-core-modules/color';
3-
import { Frame } from 'tns-core-modules/ui/frame';
43
import { fromFileOrResource } from 'tns-core-modules/image-source';
54
import { screen } from 'tns-core-modules/platform';
5+
import { Frame } from 'tns-core-modules/ui/frame';
66
import { ad as androidUtils } from 'tns-core-modules/utils/utils';
77
import { Mode, OptionsCommon } from './loading-indicator.common';
88

@@ -46,9 +46,9 @@ export class LoadingIndicator {
4646
options.userInteractionEnabled =
4747
options.userInteractionEnabled !== undefined || true;
4848
if (!this._popOver) {
49-
setTimeout(() => {
50-
this._createPopOver(context, options);
51-
});
49+
setTimeout(() => {
50+
this._createPopOver(context, options);
51+
});
5252
} else {
5353
this._updatePopOver(context, options);
5454
}
@@ -317,7 +317,8 @@ export class LoadingIndicator {
317317
contentView.addView(parentView);
318318
this._popOver.setContentView(contentView);
319319
const view =
320-
Frame.topmost().android.rootViewGroup || Frame.topmost().currentPage.android;
320+
Frame.topmost().android.rootViewGroup ||
321+
Frame.topmost().currentPage.android;
321322

322323
// handle anchoring target view
323324
if (options.android && options.android.view) {

src/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121
"postclone": "npm i && node scripts/postclone.js && cd ../demo && npm i && npx rimraf -- package-lock.json && cd ../src",
2222
"test.android": "npm run tsc && npm run tslint && cd ../demo && tns build android && tns test android --justlaunch",
2323
"test.ios": "npm run tsc && npm run tslint && cd ../demo && tns build ios && tns test ios --justlaunch",
24-
"tslint": "cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\"",
24+
"tslint": "cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\" --exclude \"**/typings/**\"",
2525
"plugin.tscwatch": "npm run tsc -- -w",
2626
"demo.ios": "npm run tsc && cd ../demo && tns run ios --emulator",
2727
"demo.android": "npm run tsc && cd ../demo && tns run android --emulator",
2828
"demo.reset": "cd ../demo && npx rimraf -- hooks node_modules platforms package-lock.json",
2929
"plugin.prepare": "npm run build && cd ../demo && tns plugin remove nativescript-loading-indicator && tns plugin add ../src",
3030
"clean": "npm run demo.reset && npx rimraf -- node_modules package-lock.json && npm i",
31-
"ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**' --exclude '**/platforms/**'",
31+
"ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**' --exclude '**/platforms/**' --exclude '**/typings/**'",
3232
"prepack": "npm run build.native"
3333
},
3434
"lint-staged": {

src/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
"noImplicitUseStrict": false,
2121
"noFallthroughCasesInSwitch": true
2222
},
23-
"exclude": ["node_modules"],
23+
"exclude": ["node_modules", "typings"],
2424
"compileOnSave": false
2525
}

0 commit comments

Comments
 (0)