8000 chore: fix lint errors · NataliaTepluhina/vue-cli@38c74c1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 38c74c1

Browse files
committed
chore: fix lint errors
1 parent 3e785df commit 38c74c1

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ module.exports = {
1717
}],
1818
"node/no-extraneous-require": ["error", {
1919
"allowModules": [
20+
"@vue/cli-service",
2021
"@vue/cli-test-utils"
2122
]
2223
}]

packages/@vue/cli-plugin-pwa/lib/HtmlPwaPlugin.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ const defaults = {
1414
const defaultManifest = {
1515
icons: [
1616
{
17-
"src": "./img/icons/android-chrome-192x192.png",
18-
"sizes": "192x192",
19-
"type": "image/png"
17+
'src': './img/icons/android-chrome-192x192.png',
18+
'sizes': '192x192',
19+
'type': 'image/png'
2020
},
2121
{
22-
"src": "./img/icons/android-chrome-512x512.png",
23-
"sizes": "512x512",
24-
"type": "image/png"
22+
'src': './img/icons/android-chrome-512x512.png',
23+
'sizes': '512x512',
24+
'type': 'image/png'
2525
}
2626
],
2727
start_url: '.',
2828
display: 'standalone',
29-
background_color: "#000000"
29+
background_color: '#000000'
3030
}
3131

3232
const defaultIconPaths = {
@@ -128,8 +128,6 @@ module.exports = class HtmlPwaPlugin {
128128

129129
cb(null, data)
130130
})
131-
132-
133131
})
134132

135133
compiler.hooks.emit.tapAsync(ID, (data, cb) => {

packages/@vue/cli-service-global/lib/globalConfigPlugin.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ module.exports = function createConfigPlugin (context, entry, asLib) {
4848
resolve.sync('vue-hot-reload-api', { basedir: context })
4949
} catch (e) {
5050
config.resolve.alias
51+
// eslint-disable-next-line node/no-extraneous-require
5152
.set('vue-hot-reload-api', require.resolve('vue-hot-reload-api'))
5253
}
5354

packages/@vue/cli-service-global/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@
2828
"@vue/cli-service": "^4.0.0-alpha.0",
2929
"babel-eslint": "^10.0.1",
3030
"chalk": "^2.4.2",
31+
"core-js": "^3.0.1",
3132
"eslint": "^5.16.0",
3233
"eslint-plugin-vue": "^5.2.2",
34+
"regenerator-runtime": "^0.13.2",
3335
"resolve": "^1.10.1",
3436
"vue": "^2.6.10",
3537
"vue-template-compiler": "^2.6.10"

0 commit comments

Comments
 (0)
0