ice icon indicating copy to clipboard operation
ice copied to clipboard

vite模式下eslint配置项表现与文档不符

Open usercao opened this issue 4 years ago • 1 comments

What is the current behavior? 发生了什么?

按照文档在vite模式下不配置eslint选项不会对eslint进行校验,只有eslint:true才会在终端警告与页面报错进行eslint验证

image

不设置eslint:true不会出现下图校验

image

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

usercao avatar Mar 02 '22 03:03 usercao

文档说明我们修复下,由于对开发调试性能的影响,默认情况下不开启 eslint,只有在主动配置的时候启动

ClarkXia avatar Mar 02 '22 07:03 ClarkXia