请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

空格问题

rules: {
        'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
        'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
        'space-before-function-paren': 'off'
    }

老师,我eslint检验空格写了关闭,运行代码还是会报错

ERROR in
D:\zm\vue3\zm-admin\src\router\index.js
   6:1   error  Expected indentation of 2 spaces but found 4   indent
   7:1   error  Expected indentation of 2 spaces but found 4   indent
  10:22  error  Newline required at end of file but not found  eol-last

✖ 3 problems (3 errors, 0 warnings)
  3 errors and 0 warnings potentially fixable with the `--fix` option.


webpack compiled with 1 error

正在回答 回答被采纳积分+3

插入代码

1回答

Sunday 2022-05-27 16:15:52

你好

你的这个报错(  6:1   error  Expected indentation of 2 spaces but found 4   indent)是另外一个检测规则,你应该提供一个  :  'indent': 'off'

0 回复 有任何疑惑可以回复我~
  • 提问者 翟敏 #1
    好的,谢谢老师
    回复 有任何疑惑可以回复我~ 2022-05-27 16:18:00
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号