我项目因为ellint格式多达129个错误 我想知道怎么去掉
> jingdongmodel@0.1.0 serve C:\Users\taoyu\Desktop\jingdongmodel
> vue-cli-service serve
INFO Starting development server...
98% after emitting CopyPlugin
ERROR Failed to compile with 1 error 下午7:08:39
error in ./src/components/Shop.vue
Module Error (from ./node_modules/eslint-loader/index.js):
C:\Users\taoyu\Desktop\jingdongmodel\src\components\Shop.vue
15:1 error Expected indentation of 2 spaces but found 4 indent
15:10 error Missing space before value for key 'name' key-spacing
16:1 error Expected indentation of 2 spaces but found 4 indent
16:5 error Extra space after key 'props' key-spacing
16:14 error There should be no space after '[' array-bracket-spacing
16:21 error There should be no space before ']' array-bracket-spacing
17:1 error Expected indentation of 2 spaces but found 4 indent
17:10 error Missing space before function parentheses space-before-function-paren
18:1 error Trailing spaces not allowed no-trailing-spaces
19:1 error Expected indentation of 2 spaces but found 4 indent
19:6 error Unexpected trailing comma comma-dangle
46:1 error Trailing spaces not allowed no-trailing-spaces
47:1 error More than 1 blank line not allowed no-multiple-empty-lines
✖ 13 problems (13 errors, 0 warnings)
13 errors and 0 warnings potentially fixable with the `--fix` option.
@ ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/views/Home/Nearby.vue?vue&type=script&lang=js 5:0-41 8:10-14
@ ./src/views/Home/Nearby.vue?vue&type=script&lang=js
@ ./src/views/Home/Nearby.vue
@ ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/views/Home/Page.vue?vue&type=script&lang=js
@ ./src/views/Home/Page.vue?vue&type=script&lang=js
@ ./src/views/Home/Page.vue
@ ./src/router/index.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://10.153.27.18:8080&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星