Skip to content

Commit

Permalink
chore: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang committed May 21, 2019
1 parent 3e785df commit 38c74c1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module.exports = {
}],
"node/no-extraneous-require": ["error", {
"allowModules": [
"@vue/cli-service",
"@vue/cli-test-utils"
]
}]
Expand Down
16 changes: 7 additions & 9 deletions packages/@vue/cli-plugin-pwa/lib/HtmlPwaPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ const defaults = {
const defaultManifest = {
icons: [
{
"src": "./img/icons/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
'src': './img/icons/android-chrome-192x192.png',
'sizes': '192x192',
'type': 'image/png'
},
{
"src": "./img/icons/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
'src': './img/icons/android-chrome-512x512.png',
'sizes': '512x512',
'type': 'image/png'
}
],
start_url: '.',
display: 'standalone',
background_color: "#000000"
background_color: '#000000'
}

const defaultIconPaths = {
Expand Down Expand Up @@ -128,8 +128,6 @@ module.exports = class HtmlPwaPlugin {

cb(null, data)
})


})

compiler.hooks.emit.tapAsync(ID, (data, cb) => {
Expand Down
1 change: 1 addition & 0 deletions packages/@vue/cli-service-global/lib/globalConfigPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ module.exports = function createConfigPlugin (context, entry, asLib) {
resolve.sync('vue-hot-reload-api', { basedir: context })
} catch (e) {
config.resolve.alias
// eslint-disable-next-line node/no-extraneous-require
.set('vue-hot-reload-api', require.resolve('vue-hot-reload-api'))
}

Expand Down
2 changes: 2 additions & 0 deletions packages/@vue/cli-service-global/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@
"@vue/cli-service": "^4.0.0-alpha.0",
"babel-eslint": "^10.0.1",
"chalk": "^2.4.2",
"core-js": "^3.0.1",
"eslint": "^5.16.0",
"eslint-plugin-vue": "^5.2.2",
"regenerator-runtime": "^0.13.2",
"resolve": "^1.10.1",
"vue": "^2.6.10",
"vue-template-compiler": "^2.6.10"
Expand Down

0 comments on commit 38c74c1

Please sign in to comment.