chore: add trailingComma

This commit is contained in:
陈嘉涵
2020-01-19 11:57:09 +08:00
parent e841175fe8
commit 389d68884d
269 changed files with 2706 additions and 2702 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ function transformFunctionComponent(pure: FunctionComponent): VantComponentOptio
functional: true,
props: pure.props,
model: pure.model,
render: (h, context): any => pure(h, context.props, unifySlots(context), context)
render: (h, context): any => pure(h, context.props, unifySlots(context), context),
};
}
+1 -1
View File
@@ -12,7 +12,7 @@ if (!isServer) {
get() {
/* istanbul ignore next */
supportsPassive = true;
}
},
});
window.addEventListener('test-passive', null as any, opts);
// eslint-disable-next-line no-empty
+3 -3
View File
@@ -13,7 +13,7 @@ const inheritKey = [
'nativeOn',
'directives',
'staticClass',
'staticStyle'
'staticStyle',
];
const mapInheritKey: ObjectIndex = { nativeOn: 'on' };
@@ -60,9 +60,9 @@ export function mount(Component: any, data?: VNodeData) {
render(h) {
return h(Component, {
props: this.$props,
...data
...data,
});
}
},
});
document.body.appendChild(instance.$el);
+1 -1
View File
@@ -43,5 +43,5 @@ export type RouteProps = {
export const routeProps = {
url: String,
replace: Boolean,
to: [String, Object]
to: [String, Object],
};
+2 -2
View File
@@ -33,8 +33,8 @@ test('deepAssign', () => {
{
foo: {
bar: true,
foo: false
}
foo: false,
},
}
);
});