8000 chore: run latest prettier · smather/nativescript-vue@083db13 · GitHub
[go: up one dir, main page]

Skip to content

Commit 083db13

Browse files
committed
chore: run latest prettier
1 parent 8f057ee commit 083db13

File tree

21 files changed

+60
-60
lines changed

21 files changed

+60
-60
lines changed

demo/src/components/Home.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ onUnmounted(() => {
5858
<template #default="{ item, index, even, odd }: ListItem<Test>">
5959
<Label
6060
:text="`item: ${JSON.stringify(
61-
item
61+
item,
6262
)}\n\nindex: ${index} even: ${even} odd: ${odd}`"
6363
textWrap="true"
6464
padding="16"
@@ -69,7 +69,7 @@ onUnmounted(() => {
6969
<Label
7070
backgroundColor="red"
7171
:text="`item: ${JSON.stringify(
72-
item
72+
item,
7373
)}\n\nindex: ${index} even: ${even} odd: ${odd}`"
7474
textWrap="true"
7575
padding="16"

demo/src/components/demo_ListView.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ const items2 = ref(
4343
return {
4444
name: `Item ${i}`,
4545
};
46-
})
47-
)
46+
}),
47+
),
4848
);
4949
const name = ref('Vue 3');
5050

devtools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if (__DEV__) {
2323
_global.window ??= _global;
2424

2525
console.warn(
26-
`[VueDevtools] Connecting to ${global.__VUE_DEVTOOLS_HOST__}:${global.__VUE_DEVTOOLS_PORT__}...`
26+
`[VueDevtools] Connecting to ${global.__VUE_DEVTOOLS_HOST__}:${global.__VUE_DEVTOOLS_PORT__}...`,
2727
);
2828
require('@vue/devtools/build/hook.js');
2929
require('@vue/devtools/build/backend.js');

nativescript.webpack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function startVueDevtools(port, isAndroid = false) {
4545
console.log(`[VueDevtools] Starting standalone Vue Devtools on port ${port}`);
4646
if (isAndroid) {
4747
console.log(
48-
`[VueDevtools] If the app doesn't automatically connect, check if http traffic is allowed. (e.g. on Android, you may need to set android:usesCleartextTraffic="true" in AndroidManifest.xml)`
48+
`[VueDevtools] If the app doesn't automatically connect, check if http traffic is allowed. (e.g. on Android, you may need to set android:usesCleartextTraffic="true" in AndroidManifest.xml)`,
4949
);
5050
}
5151
spawn(require.resolve('@vue/devtools/bin.js'), [], {

packages/stackblitz-template/src/components/Details.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ref, $navigateBack } from 'nativescript-vue';
44
const items = ref(
55
Array(1000)
66
.fill(0)
7-
.map((_, index) => `Item ${index + 1}`)
7+
.map((_, index) => `Item ${index + 1}`),
88
);
99
</script>
1010

packages/template-blank/hooks/after-createProject/after-createProject.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ module.exports = function (hookArgs) {
5555
.resolve('@nativescript/webpack/package.json', {
5656
paths: [appRootFolder],
5757
})
58-
.replace('package.json', 'dist/bin/index.js')
58+
.replace('package.json', 'dist/bin/index.js'),
5959
);
6060

6161
// init webpack config

packages/template-blank/src/components/Details.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ref, $navigateBack } from 'nativescript-vue';
44
const items = ref(
55
Array(1000)
66
.fill(0)
7-
.map((_, index) => `Item ${index + 1}`)
7+
.map((_, index) => `Item ${index + 1}`),
88
);
99
</script>
1010

src/components/ActionBar.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ export const ActionBar = /*#__PURE__*/ defineComponent({
6767
if (__DEV__) {
6868
warn(
6969
`<ActionBar> must be a direct child of a <Page> element - ` +
70-
`got <${parent.nativeView.constructor.name}> instead.`
70+
`got <${parent.nativeView.constructor.name}> instead.`,
7171
);
7272
}
7373
}
7474
},
7575
},
76-
ctx.slots.default ? ctx.slots.default() : undefined
76+
ctx.slots.default ? ctx.slots.default() : undefined,
7777
);
7878
};
7979
},

src/components/ListView.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export const ListView = /*#__PURE__*/ defineComponent({
9595
props.items instanceof ObservableArray
9696
? props.items.getItem(event.index)
9797
: props.items[event.index],
98-
event.index
98+
event.index,
9999
);
100100

101101
// update the cell data with the current row
@@ -137,7 +137,7 @@ export const ListView = /*#__PURE__*/ defineComponent({
137137

138138
if (vnodes.length > 1) {
139139
warn(
140-
`ListView template must contain a single root element. Found: ${vnodes.length}. Only the first one will be used.`
140+
`ListView template must contain a single root element. Found: ${vnodes.length}. Only the first one will be used.`,
141141
);
142142
}
143143

@@ -158,7 +158,7 @@ export const ListView = /*#__PURE__*/ defineComponent({
158158
itemTemplateSelector,
159159
onitemLoading,
160160
},
161-
cellVNODES()
161+
cellVNODES(),
162162
);
163163
};
164164
},

src/dom/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export abstract class NSVNode {
6161
}
6262

6363
const selfIndex = this.parentNode.childNodes.findIndex(
64-
(n) => n.nodeId === this.nodeId
64+
(n) => n.nodeId === this.nodeId,
6565
);
6666

6767
if (selfIndex > -1 && selfIndex < this.parentNode.childNodes.length - 1) {
@@ -77,7 +77,7 @@ export abstract class NSVNode {
7777
}
7878

7979
const selfIndex = this.parentNode.childNodes.findIndex(
80-
(n) => n.nodeId === this.nodeId
80+
(n) => n.nodeId === this.nodeId,
8181
);
8282

8383
if (selfIndex > 0) {
@@ -148,7 +148,7 @@ export class NSVElement extends NSVNode {
148148
addEventListener(
149149
event: string,
150150
handler: any,
151-
options: AddEventListenerOptions = {}
151+
options: AddEventListenerOptions = {},
152152
) {
153153
const { capture, once } = options;
154154
if (capture) {
@@ -212,7 +212,7 @@ export class NSVElement extends NSVNode {
212212
}
213213

214214
const refIndex = this.childNodes.findIndex(
215-
(node) => node.nodeId === anchor.nodeId
215+
(node) => node.nodeId === anchor.nodeId,
216216
);
217217

218218
if (refIndex === -1) {
@@ -246,7 +246,7 @@ export class NSVElement extends NSVNode {
246246

247247
removeChild(el: NSVNode) {
248248
const index = this.childNodes.findIndex(
249-
(node) => node.nodeId === el.nodeId
249+
(node) => node.nodeId === el.nodeId,
250250
);
251251

252252
if (index > -1) {
@@ -277,7 +277,7 @@ export class NSVElement extends NSVNode {
277277
return text;
278278
}
279279
return text + currentNode.text;
280-
}, '')
280+
}, ''),
281281
);
282282
}
283283
}

0 commit comments

Comments
 (0)
0