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
基于Vue3重写Vue-element-admin,打造后台前端综合解决方案
了解课程