@pylonts/lint
v1.1.8
Published
Field naming checks for @pylonts/dsl schemas.
Downloads
76
Readme
@pylonts/lint
基于 @pylonts/dsl schema 的代码同步检查。只实现检查功能(纯函数 API),CLI 由单独的 cli 项目提供(pylonts lint)。
检查器
- field-check.md — 字段命名检查(实体短语首段 + 业务短语末段)
- DTO Check — 生成 TypeBox DTO 与源 DtoMessage 同步(字段存在、可选性一致)
- Entity Check — Entity 接口字段列存在及类型一致性检查(ts-morph AST)
- DAO Check — DAO knex 表名/列引用正确性检查(ts-morph AST)
- Controller Check — Controller 的 Service import / DTO 引用有效性检查(ts-morph AST)
用法
# 单项
pylonts lint field
pylonts lint dto
pylonts lint entity
pylonts lint dao
pylonts lint controller
# 全部
pylonts lint # 默认跑 all