1.0.1 • Published 4 months ago

eslint-plugin-no-contant-judge v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

eslint自定义插件-警告使用常量判断

构建ESLint插件,对于逻辑表达式进行完善,不能恒为字面量(value: string | boolean | null | number | RegExp正则),标识符或者枚举,支持 " || "、"&&"逻辑表达式判断,并未对" ! "处理,因为存在使用情形,比如(!flag)

主要逻辑是检查逻辑表达式,节点名称为"LogicalExpression" ,节点下分为left、operator、right

1.0.1

4 months ago

1.0.0

4 months ago