Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no-undef 规则默认关闭的原因是什么? #259

Open
xqyi opened this issue Jan 13, 2024 · 1 comment
Open

no-undef 规则默认关闭的原因是什么? #259

xqyi opened this issue Jan 13, 2024 · 1 comment

Comments

@xqyi
Copy link

xqyi commented Jan 13, 2024

在使用中发现 no-undef 规则默认是关闭的,我知道这个规则和 typescript 已有的语法检查有重复,但是如果出现使用了未定义变量的情况,尽管 typescript 能检测到,但并不强行要求修正,在向 git 提交代码时会将此问题提交到代码服务器上,开启 no-undef 规则可以借助 husky 和 lint-staged 很好的阻止这个错误提交到代码服务器上,Alloy 出于什么考虑关闭该规则呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants