Laravel Vue-错误地删除`␍`漂亮/更漂亮,可能可以通过`--fix`选项修复

时间:2019-03-05 12:13:00

标签: laravel vue.js npm

npm run watch重现此错误     181问题(181错误,0警告)       --fix选项可能会修复181个错误和0个警告。

 @ ./resources/js/backend/router/index.js 15:0-41 160:21-29
 @ ./resources/js/backend/app.js
 @ multi ./resources/js/backend/app.js ./resources/sass/backend/app.scss

ERROR in ./resources/js/vue-i18n-config.js
Module Error (from ./node_modules/eslint-loader/index.js):

\resources\js\vue-i18n-config.js
   1:4   error  Delete `␍`  prettier/prettier
   2:18  error  Delete `␍`  prettier/prettier
   3:4   error  Delete `␍`  prettier/prettier
   4:22  error  Delete `␍`  prettier/prettier
   5:1   error  Delete `␍`  prettier/prettier
   6:4   error  Delete `␍`  prettier/prettier

1 个答案:

答案 0 :(得分:0)

可能会帮助您:设置"endOfLine":"auto" in your `.prettierrc` file,然后重新启动服务器并运行npm run lint -- --fix