lint-fix 未修复

来源:2-4 安装使用eslint和editorconfig以及precommit

慕少0974861

2018-11-24

lint – fix 执行完毕后进行修复
(```)
/Users/dengshicheng/Desktop/web/vue-todo-tech/client/layout/header.vue
7:1 error Parsing error: Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>…</>?

5 |
6 |

7 |

✖ 5 problems (5 errors, 0 warnings)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue-ssr-tech@1.0.0 lint-fix: eslint --fix --ext .js --ext .vue --ext .jsx client/
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue-ssr-tech@1.0.0 lint-fix script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
(```)

写回答

1回答

Jokcy

2018-11-26

lint-fix只能修复一部分错误,你这个属于语法错误,修复不了

0
0

Vue核心技术 Vue+Vue-Router+Vuex+SSR实战精讲

深入讲解Vue核心技术,展示Vue应用开发中的各种问题和解决方案

3168 学习 · 853 问题

查看课程