Skip to content

Commit f5b85a0

Browse files
committed
chore: update coding styles
1 parent 6d8c815 commit f5b85a0

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

generator.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const fs = require('fs')
33
const removeFiles = (files = []) => {
44
files.forEach(path => {
55
if (fs.existsSync(path)) {
6-
fs.unlinkSync(path);
6+
fs.unlinkSync(path)
77
}
88
})
99
}
@@ -12,7 +12,7 @@ module.exports = (api, options, rootOptions) => {
1212
api.extendPackage({
1313
dependencies: {
1414
'element-ui': '^2.4.11'
15-
},
15+
}
1616
})
1717

1818
api.injectImports(api.entryFile, `import './registerElementUI'`)
@@ -21,7 +21,8 @@ module.exports = (api, options, rootOptions) => {
2121

2222
api.onCreateComplete(() => {
2323
removeFiles([
24-
api.resolve('src/components/HelloWorld.vue')
24+
api.resolve('src/components/HelloWorld.vue'),
25+
api.resolve('src/store.js')
2526
])
2627
})
2728
}

preset.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
"@vue/cli-plugin-babel": {},
55
"@vue/cli-plugin-pwa": {},
66
"@vue/cli-plugin-eslint": {
7-
"config": "airbnb",
8-
"lintOn": [
9-
"save"
10-
]
7+
"config": "standard",
8+
"lintOn": ["save"]
119
},
1210
"@vue/cli-plugin-unit-jest": {}
1311
},

template/structure/src/styles/theme/element-variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ $--color-primary: #409eff;
22

33
$--font-path: '~element-ui/lib/theme-chalk/fonts';
44

5-
@import "~element-ui/packages/theme-chalk/src/index";
5+
@import '~element-ui/packages/theme-chalk/src/index';

0 commit comments

Comments
 (0)