vite2+react+ts+eslint的相关问题 #2186
Unanswered
fox19920726
asked this question in
Q&A
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我想用eslint来规范代码,于是:
但是我发现他eslint校验的是在浏览器里执行的文件,比如他会校验__vite_plugin_react_timeout没有用驼峰:
我还是带着webpack的思路来配这个vite.config.ts的,原来webpack里这样的思路去配是没有问题的,校验的也是源码
但是vite好像不是这样,可能我对vite的理解不到位,有同学能指教一二吗
(我现在没有别的办法,就只好加个commit hook去校验了)
Beta Was this translation helpful? Give feedback.
All reactions