Skip to content

Commit d4467a5

Browse files
committed
chore: lint
1 parent 8743d81 commit d4467a5

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

src/bottomsheet/vue/index.ts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export interface VueBottomSheetOptions extends Omit<BottomSheetOptions, 'view'>
88
}
99

1010
declare module 'nativescript-vue' {
11-
interface NativeScriptVue <V = View> extends Vue{
11+
interface NativeScriptVue<V = View> extends Vue {
1212
$showBottomSheet(component: typeof Vue, options?: VueBottomSheetOptions): Promise<any>;
1313
$closeBottomSheet(...args);
1414
}
@@ -23,22 +23,24 @@ function serializeModalOptions(options) {
2323

2424
const allowed = ['fullscreen'];
2525

26-
return Object.keys(options)
27-
.filter(key => allowed.includes(key))
28-
.map(key => `${key}: ${options[key]}`)
29-
.concat(`uid: ${++sequentialCounter}`)
30-
.join(', ') + '_bottomsheet';
26+
return (
27+
Object.keys(options)
28+
.filter((key) => allowed.includes(key))
29+
.map((key) => `${key}: ${options[key]}`)
30+
.concat(`uid: ${++sequentialCounter}`)
31+
.join(', ') + '_bottomsheet'
32+
);
3133
}
3234

3335
const BottomSheetPlugin = {
3436
install(Vue) {
35-
Vue.prototype.$showBottomSheet = function(component, options: VueBottomSheetOptions) {
37+
Vue.prototype.$showBottomSheet = function (component, options: VueBottomSheetOptions) {
3638
return new Promise((resolve: (...args) => void) => {
3739
let resolved = false;
3840
let navEntryInstance = new Vue({
3941
name: 'BottomSheetEntry',
4042
parent: this.$root,
41-
render: h =>
43+
render: (h) =>
4244
h(component, {
4345
props: options.props,
4446
key: serializeModalOptions(options)
@@ -65,8 +67,8 @@ const BottomSheetPlugin = {
6567
);
6668
});
6769
};
68-
Vue.prototype.$closeBottomSheet = function(...args) {
69-
(this.nativeView).closeBottomSheet.apply(this.nativeView, args);
70+
Vue.prototype.$closeBottomSheet = function (...args) {
71+
this.nativeView.closeBottomSheet.apply(this.nativeView, args);
7072
};
7173
}
7274
};

0 commit comments

Comments
 (0)