levy9527 / nuxt-element-dashboard

⚡️develop your admin-dashboard fast

Home Page:https://github.com/FEMessage/create-nuxt-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

遗留代码?

shoyuf opened this issue · comments

if (isDev && process.client) {

该处的 process.client 在 dev 或 build 环境中都为 undefined,eslint 在代码中也未作用,是否为不需要的代码?

commented

@shoyuf 感谢指出。

commented

https://nuxtjs.org/guide/development-tools#eslint-and-prettier
image

应该是当初init的时候就有的,后面check一下过时配置

commented

这个其实是升级至nuxt2后遗漏的内容,不过也是有意不开启,因为启用eslint,会对团队编码习惯有影响。

正确的修改方案详见这个PR:https://github.com/FEMessage/create-nuxt-app/pull/43/files

建议是:如果要改正这里,最好与团队协商得出一份eslint规则后,再开启它。