为什么会在控制台中出现这些警告,而且再终端显示错误,但是运行起来是没有问题的

来源:6-5 Vue项目预热 - 单页应用VS多页应用

qq_哦_36

2018-09-20

The key “minimun-scale” is not recognized and ignored.
log.js?4244:23 [HMR] Waiting for update signal from WDS…
index.js?bed3:147 [WDS] Warnings while compiling.
warnings @ index.js?bed3:147
onmessage @ socket.js?57b2:41
EventTarget.dispatchEvent @ sockjs.js?3600:170
(anonymous) @ sockjs.js?3600:887
SockJS._transportMessage @ sockjs.js?3600:885
EventEmitter.emit @ sockjs.js?3600:86
WebSocketTransport.ws.onmessage @ sockjs.js?3600:2961
index.js?bed3:153 ./src/router/index.js
]50;CurrentDir=E:\Travel\Travel
http://eslint.org/docs/rules/comma-spacing A space is required after ','
src\router\index.js:13:6
},{
^

✘ 1 problem (1 error, 0 warnings)

Errors:
1 http://eslint.org/docs/rules/comma-spacing
@ ./src/main.js 5:0-30
@ multi (webpack)-dev-server/client?http://localhost:8082 webpack/hot/dev-server ./src/main.js
warnings @ index.js?bed3:153
onmessage @ socket.js?57b2:41
EventTarget.dispatchEvent @ sockjs.js?3600:170
(anonymous) @ sockjs.js?3600:887
SockJS._transportMessage @ sockjs.js?3600:885
EventEmitter.emit @ sockjs.js?3600:86
WebSocketTransport.ws.onmessage @ sockjs.js?3600:2961
index.js?bed3:153 ./src/main.js
]50;CurrentDir=E:\Travel\Travel
http://eslint.org/docs/rules/no-multiple-empty-lines Too many blank lines at the end of file. Max of 0 allowed
src\main.js:16:1

^

✘ 1 problem (1 error, 0 warnings)

Errors:
1 http://eslint.org/docs/rules/no-multiple-empty-lines
@ multi (webpack)-dev-server/client?http://localhost:8082 webpack/hot/dev-server ./src/main.js
warnings @ index.js?bed3:153
onmessage @ socket.js?57b2:41
EventTarget.dispatchEvent @ sockjs.js?3600:170
(anonymous) @ sockjs.js?3600:887
SockJS._transportMessage @ sockjs.js?3600:885
EventEmitter.emit @ sockjs.js?3600:86
WebSocketTransport.ws.onmessage @ sockjs.js?3600:2961
index.js?bed3:153 ./src/pages/list/List.vue
]50;CurrentDir=E:\Travel\Travel
http://eslint.org/docs/rules/no-tabs Unexpected tab character
src\pages\list\List.vue:2:2


^

http://eslint.org/docs/rules/no-tabs Unexpected tab character
src\pages\list\List.vue:3:2
list
^

http://eslint.org/docs/rules/no-tabs Unexpected tab character
src\pages\list\List.vue:4:2

^

http://eslint.org/docs/rules/indent Expected indentation of 2 spaces but found 1 tab
src\pages\list\List.vue:9:1
name:“List”
^

http://eslint.org/docs/rules/no-tabs Unexpected tab character
src\pages\list\List.vue:9:2
name:“List”
^

http://eslint.org/docs/rules/key-spacing Missing space before value for key 'name’
src\pages\list\List.vue:9:7
name:“List”
^

http://eslint.org/docs/rules/quotes Strings must use singlequote
src\pages\list\List.vue:9:7
name:“List”
^

http://eslint.org/docs/rules/no-trailing-spaces Trailing spaces not allowed
src\pages\list\List.vue:14:1

^

http://eslint.org/docs/rules/no-tabs Unexpected tab character
src\pages\list\List.vue:14:2

 ^

http://eslint.org/docs/rules/eol-last Newline required at end of file but not found
src\pages\list\List.vue:15:9

^

✘ 10 problems (10 errors, 0 warnings)

Errors:
5 http://eslint.org/docs/rules/no-tabs
1 http://eslint.org/docs/rules/eol-last
1 http://eslint.org/docs/rules/no-trailing-spaces
1 http://eslint.org/docs/rules/quotes
1 http://eslint.org/docs/rules/key-spacing
1 http://eslint.org/docs/rules/indent
@ ./src/router/index.js 4:0-37
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8082 webpack/hot/dev-server ./src/main.js
warnings @ index.js?bed3:153
onmessage @ socket.js?57b2:41
EventTarget.dispatchEvent @ sockjs.js?3600:170
(anonymous) @ sockjs.js?3600:887
SockJS._transportMessage @ sockjs.js?3600:885
EventEmitter.emit @ sockjs.js?3600:86
WebSocketTransport.ws.onmessage @ sockjs.js?3600:2961
index.js?bed3:153 ./src/pages/home/home.vue
]50;CurrentDir=E:\Travel\Travel
http://eslint.org/docs/rules/no-tabs Unexpected tab character
src\pages\home\home.vue:2:2


^

http://eslint.org/docs/rules/no-tabs Unexpected tab character
src\pages\home\home.vue:3:2


^

http://eslint.org/docs/rules/no-tabs Unexpected tab character
src\pages\home\home.vue:4:2
home
^

http://eslint.org/docs/rules/no-tabs Unexpected tab character
src\pages\home\home.vue:5:2

^

http://eslint.org/docs/rules/no-tabs Unexpected tab character
src\pages\home\home.vue:6:2
list
^

http://eslint.org/docs/rules/no-tabs Unexpected tab character
src\pages\home\home.vue:7:2

^

http://eslint.org/docs/rules/indent Expected indentation of 2 spaces but found 1 tab
src\pages\home\home.vue:12:1
name:“home”
^

http://eslint.org/docs/rules/no-tabs Unexpected tab character
src\pages\home\home.vue:12:2
name:“home”
^

http://eslint.org/docs/rules/key-spacing Missing space before value for key 'name’
src\pages\home\home.vue:12:7
name:“home”
^

http://eslint.org/docs/rules/quotes Strings must use singlequote
src\pages\home\home.vue:12:7
name:“home”
^

http://eslint.org/docs/rules/no-tabs Unexpected tab character
src\pages\home\home.vue:17:2
.home{
^

http://eslint.org/docs/rules/no-tabs Unexpected tab character
src\pages\home\home.vue:18:2
font-size: 50px;
^

http://eslint.org/docs/rules/no-tabs Unexpected tab character
src\pages\home\home.vue:19:2
}
^

http://eslint.org/docs/rules/eol-last Newline required at end of file but not found
src\pages\home\home.vue:20:9

^

✘ 14 problems (14 errors, 0 warnings)

Errors:
10 http://eslint.org/docs/rules/no-tabs
1 http://eslint.org/docs/rules/eol-last=图片描述
1 http://eslint.org/docs/rules/quotes
1 http://eslint.org/docs/rules/key-spacing
1 http://eslint.org/docs/rules/indent
@ ./src/router/index.js 3:0-37
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8082 webpack/hot/dev-server ./src/main.js
warnings @ index.js?bed3:153
onmessage @ socket.js?57b2:41
EventTarget.dispatchEvent @ sockjs.js?3600:170
(anonymous) @ sockjs.js?3600:887
SockJS._transportMessage @ sockjs.js?3600:885
EventEmitter.emit @ sockjs.js?3600:86
WebSocketTransport.ws.onmessage @ sockjs.js?3600:2961
图片描述

写回答

1回答

Dell

2018-09-22

你的代码不符合规范,自己要根据eslint提示修改代码格式

0
4
Dell
回复
qq_哦_36
就是你看看英文翻译,提示你哪里写的不规范。。。
2018-09-30
共4条回复

Vue2.5-2.6-3.0开发去哪儿网App 零基础入门到实战

课程紧跟Vue3版本迭代,企业主流版本Vue2+Vue3全掌握

10675 学习 · 8191 问题

查看课程