Skip to content

Commit 6381376

Browse files
chore(deps-dev): bump prettier from 1.19.1 to 2.0.2 (#29)
* chore(deps-dev): bump prettier from 1.19.1 to 2.0.2 Bumps [prettier](https://github.com/prettier/prettier) from 1.19.1 to 2.0.2. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md) - [Commits](prettier/prettier@1.19.1...2.0.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * refactor: format Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: ktsn <ktsn55@gmail.com>
1 parent b44253e commit 6381376

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

generator/index.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
1-
module.exports = api => {
1+
module.exports = (api) => {
22
api.extendPackage({
33
dependencies: {
4-
'vue-router-layout': '^0.1.2'
4+
'vue-router-layout': '^0.1.2',
55
},
66
devDependencies: {
7-
'vue-auto-routing': '^0.4.0'
7+
'vue-auto-routing': '^0.4.0',
88
},
99
vue: {
1010
pluginOptions: {
1111
autoRouting: {
12-
chunkNamePrefix: 'page-'
13-
}
14-
}
15-
}
12+
chunkNamePrefix: 'page-',
13+
},
14+
},
15+
},
1616
})
1717

1818
api.render('./template')
1919

2020
if (api.invoking) {
21-
api.postProcessFiles(files => {
22-
Object.keys(files).forEach(name => {
21+
api.postProcessFiles((files) => {
22+
Object.keys(files).forEach((name) => {
2323
if (/^src\/views[/$]/.test(name)) {
2424
delete files[name]
2525
}
2626
})
2727
})
2828

2929
if (api.hasPlugin('typescript')) {
30-
api.postProcessFiles(files => {
30+
api.postProcessFiles((files) => {
3131
delete files['src/router.ts']
3232
})
3333

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ const VueAutoRoutingPlugin = require('vue-auto-routing/lib/webpack-plugin')
22

33
const defaultOptions = {
44
pages: 'src/pages',
5-
nested: true
5+
nested: true,
66
}
77

88
module.exports = (api, options) => {
99
const pluginOptions = {
1010
...defaultOptions,
11-
...(options.pluginOptions && options.pluginOptions.autoRouting)
11+
...(options.pluginOptions && options.pluginOptions.autoRouting),
1212
}
1313

14-
api.chainWebpack(webpackConfig => {
14+
api.chainWebpack((webpackConfig) => {
1515
// prettier-ignore
1616
webpackConfig
1717
.plugin('vue-auto-routing')

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"devDependencies": {
3333
"eslint": "^6.1.0",
3434
"eslint-config-ktsn": "^2.0.1",
35-
"prettier": "1.19.1"
35+
"prettier": "2.0.2"
3636
},
3737
"peerDependencies": {
3838
"vue-auto-routing": "0.x"

route-meta-loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module.exports = function() {
1+
module.exports = function () {
22
return ''
33
}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -616,10 +616,10 @@ prelude-ls@~1.1.2:
616616
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
617617
integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=
618618

619-
prettier@1.19.1:
620-
version "1.19.1"
621-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb"
622-
integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==
619+
prettier@2.0.2:
620+
version "2.0.2"
621+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.0.2.tgz#1ba8f3eb92231e769b7fcd7cb73ae1b6b74ade08"
622+
integrity sha512-5xJQIPT8BraI7ZnaDwSbu5zLrB6vvi8hVV58yHQ+QK64qrY40dULy0HSRlQ2/2IdzeBpjhDkqdcFBnFeDEMVdg==
623623

624624
progress@^2.0.0:
625625
version "2.0.3"

0 commit comments

Comments
 (0)