Skip to content

Commit dd89f45

Browse files
committed
chore: autofix lint issues
1 parent e0722b8 commit dd89f45

File tree

17 files changed

+29
-29
lines changed

17 files changed

+29
-29
lines changed

src/activityindicator/index.ios.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ export class ActivityIndicator extends ActivityIndicatorBase {
7676
// }
7777

7878
[colorProperty.setNative](value: UIColor | Color) {
79-
const color = value instanceof Color ? value.ios : value;;
79+
const color = value instanceof Color ? value.ios : value;
8080
this.nativeViewProtected.cycleColors = color ? NSArray.arrayWithObject(color) : null;
8181
// this.getColorThemer().primaryColor = value instanceof Color ? value.ios : value;
8282
// MDCActivityIndicatorColorThemer.applySemanticColorSchemeToActivityIndicator(this.getColorThemer(), this.nativeViewProtected);
8383
}
8484
[indeterminateProperty.setNative](value: boolean) {
85-
this.nativeViewProtected.indicatorMode = !!value ? MDCActivityIndicatorMode.Indeterminate : MDCActivityIndicatorMode.Determinate;
85+
this.nativeViewProtected.indicatorMode = value ? MDCActivityIndicatorMode.Indeterminate : MDCActivityIndicatorMode.Determinate;
8686
}
8787
}

src/bottom-navigation/index.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ function iterateIndexRange(index: number, eps: number, lastIndex: number, callba
243243
@CSSType('BottomNavigation')
244244
export class BottomNavigation extends TabNavigationBase {
245245
private _contentView: org.nativescript.widgets.ContentLayout;
246-
private _contentViewId: number = -1;
246+
private _contentViewId = -1;
247247
private _bottomNavigationBar: org.nativescript.widgets.BottomNavigationBar;
248248
private _currentFragment: androidx.fragment.app.Fragment;
249249
private _currentTransaction: androidx.fragment.app.FragmentTransaction;

src/bottom-navigation/index.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ export class BottomNavigation extends TabNavigationBase {
416416
}
417417
}
418418

419-
private setIconColor(tabStripItem: TabStripItem, forceReload: boolean = false): void {
419+
private setIconColor(tabStripItem: TabStripItem, forceReload = false): void {
420420
if (forceReload || (!this._unSelectedItemColor && !this._selectedItemColor)) {
421421
// if selectedItemColor or unSelectedItemColor is set we don't respect the color from the style
422422
const tabStripColor = this.selectedIndex === tabStripItem._index ? this._selectedItemColor : this._unSelectedItemColor;

src/bottomnavigationbar/bottomnavigationbar-common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export abstract class BottomNavigationBarBase extends View {
5757
@cssProperty badgeColor: Color;
5858
@cssProperty badgeTextColor: Color;
5959

60-
selectedTabIndex: number = 0;
60+
selectedTabIndex = 0;
6161
titleVisibility: TitleVisibility = TitleVisibility.always;
6262

6363
protected _items: BottomNavigationTabBase[] = [];

src/bottomsheet/angular/bottomsheet.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { install } from '@nativescript-community/ui-material-bottomsheet';
66
@NgModule()
77
export class NativeScriptMaterialBottomSheetModule {
88
// This flag help us to avoid problems when using the new development workflow
9-
private static initialized: boolean = false;
9+
private static initialized = false;
1010

1111
static forRoot(): ModuleWithProviders<NativeScriptMaterialBottomSheetModule> {
1212
return {

src/button/button-common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { VerticalTextAlignment } from '@nativescript-community/text';
44

55
@CSSType('MDButton')
66
export abstract class ButtonBase extends Button {
7-
public variant: string = 'contained';
7+
public variant = 'contained';
88
@cssProperty elevation: number;
99
@cssProperty dynamicElevationOffset: number;
1010
@cssProperty rippleColor: Color;

src/core/index.android.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ export function getRippleColor(color: string | Color) {
177177
}
178178

179179
class ViewWithElevationAndRipple extends View {
180-
@cssProperty elevation: number = 0;
181-
@cssProperty dynamicElevationOffset: number = 0;
180+
@cssProperty elevation = 0;
181+
@cssProperty dynamicElevationOffset = 0;
182182
@cssProperty rippleColor: Color;
183183
rippleDrawable: android.graphics.drawable.Drawable;
184184
getRippleColor() {

src/core/index.common.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ export function applyMixins(
3030
} else {
3131
derivedCtor.prototype[name] = function (...args) {
3232
if (options) {
33-
if (!!options.override) {
33+
if (options.override) {
3434
return baseCtor.prototype[name].apply(this, args);
35-
} else if (!!options.after) {
35+
} else if (options.after) {
3636
oldImpl.apply(this, args);
3737
return baseCtor.prototype[name].apply(this, args);
3838
} else {
@@ -57,9 +57,9 @@ export function applyMixins(
5757
} else {
5858
derivedCtor.prototype[symbol] = function (...args) {
5959
if (options) {
60-
if (!!options.override) {
60+
if (options.override) {
6161
return baseCtor.prototype[symbol].apply(this, args);
62-
} else if (!!options.after) {
62+
} else if (options.after) {
6363
oldImpl.apply(this, args);
6464
return baseCtor.prototype[symbol].apply(this, args);
6565
} else {

src/dialogs/dialogs.android.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ export function prompt(arg: any): Promise<PromptResult> {
397397
);
398398

399399
showDialog(dlg, options);
400-
if (!!options.autoFocus) {
400+
if (options.autoFocus) {
401401
textField.requestFocus();
402402
}
403403
} catch (ex) {
@@ -462,7 +462,7 @@ export function login(arg: any): Promise<LoginResult> {
462462

463463
const alert = createAlertDialogBuilder(options);
464464

465-
if (!!options.beforeShow) {
465+
if (options.beforeShow) {
466466
options.beforeShow(options, userNameTextField, passwordTextField);
467467
}
468468
const dlg = prepareAndCreateAlertDialog(
@@ -478,7 +478,7 @@ export function login(arg: any): Promise<LoginResult> {
478478
(r) => ({ result: r, userName: userNameTextField.text, password: passwordTextField.text })
479479
);
480480
showDialog(dlg, options);
481-
if (!!options.autoFocus) {
481+
if (options.autoFocus) {
482482
userNameTextField.requestFocus();
483483
}
484484
} catch (ex) {

src/dialogs/dialogs.ios.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ export function prompt(arg: any): Promise<PromptResult> {
419419
},
420420
(r) => ({ result: r, text: textField.text })
421421
);
422-
if (!!options.autoFocus) {
422+
if (options.autoFocus) {
423423
alertController.autoFocusTextField = textField;
424424
}
425425
showUIAlertController(alertController);
@@ -496,11 +496,11 @@ export function login(arg: any): Promise<LoginResult> {
496496
(r) => ({ result: r, userName: userNameTextField.text, password: passwordTextField.text })
497497
);
498498

499-
if (!!options.beforeShow) {
499+
if (options.beforeShow) {
500500
options.beforeShow(options, userNameTextField, passwordTextField);
501501
}
502502
showUIAlertController(alertController);
503-
if (!!options.autoFocus) {
503+
if (options.autoFocus) {
504504
alertController.autoFocusTextField = userNameTextField;
505505
}
506506
} catch (ex) {

0 commit comments

Comments
 (0)