[improvement] update eslint config (#2288)

This commit is contained in:
neverland
2018-12-14 14:24:23 +08:00
committed by GitHub
parent d2751ffdfa
commit 16e4889a92
141 changed files with 6387 additions and 7536 deletions
+4 -4
View File
@@ -4,15 +4,15 @@
import '../locale';
import bem from '../mixins/bem';
import i18n from '../mixins/i18n';
import { isDef } from './';
import { isDef } from '.';
function install(Vue) {
Vue.component(this.name, this);
};
}
function returnArray() {
return [];
};
}
function defaultProps(props) {
Object.keys(props).forEach(key => {
@@ -30,7 +30,7 @@ function defaultProps(props) {
});
}
export default function(sfc) {
export default function (sfc) {
sfc.name = 'van-' + sfc.name;
sfc.install = sfc.install || install;
sfc.mixins = sfc.mixins || [];