ice
ice copied to clipboard
vite模式下eslint配置项表现与文档不符
What is the current behavior? 发生了什么?
按照文档在vite模式下不配置eslint选项不会对eslint进行校验,只有eslint:true才会在终端警告与页面报错进行eslint验证
不设置eslint:true不会出现下图校验
What is the expected behavior? 期望的结果是什么?
希望符合文档默认规则eslint在终端校验
Any additional comments? 相关环境信息?
- ice.js Version:v2.5.1
- build.json Configuration:
export default {
store: false,
vite: true,
hash: true,
// eslint: true,
dropLogLevel: 'log',
router: {
configPath: 'src/routes/index.ts',
},
};
- Node Version:v16.14.0
- Platform:mac 复现地址https://github.com/usercao/ice-test
文档说明我们修复下,由于对开发调试性能的影响,默认情况下不开启 eslint,只有在主动配置的时候启动