Skip to content

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

@xqyi

Description

@xqyi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions