@longzai-intelligence-oxlint/utils 0.1.18 → 0.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +8 -11
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,17 +1,14 @@
1
1
  # @longzai-intelligence-oxlint/utils
2
2
 
3
- ## 意图
3
+ Longzai Intelligence Oxlint 的插件工具包,为插件开发提供通用类型、Schema、工具函数与类型守卫。
4
4
 
5
- 为 Oxlint 插件开发提供通用的类型、Schema、工具函数与类型守卫,降低各插件重复编写 AST 解析与命名校验逻辑的成本。
5
+ ## 简介
6
6
 
7
- ## 定位
7
+ 治理插件公共底座重复实现的问题:规则类型、AST Schema、命名校验等各插件共用的能力由本包统一沉淀,避免各插件重复编写 AST 解析与命名校验逻辑;具体规则语义由各插件包承载。
8
8
 
9
- Oxlint 项目的插件工具层,服务于全部 plugin-* 包,与 core 并列为生态底层依赖。
9
+ ## 能力
10
10
 
11
- ## 职能
12
-
13
- 定义规则相关类型与插件 Schema;抽象 AST 节点 Schema(导入声明、调用表达式、对象表达式、默认导出等);提供导入解析、文件路径处理、命名约定校验等工具函数;提供 AST 节点与插件对象的类型守卫。
14
-
15
- ## 实现情况
16
-
17
- 类型、Schema、工具函数与守卫均已实现并按目录模块化导出,配套覆盖命名、导入、文件工具与 AST、插件守卫的单元测试;当前依赖 Oxlint 官方插件运行时与 Zod,对外通过 peerDependencies 约束 Oxlint 版本。
11
+ - 规则相关类型与插件 Schema 定义
12
+ - AST 节点 Schema 抽象:导入声明、调用表达式、对象表达式、默认导出等
13
+ - 工具函数:导入解析、文件路径处理、命名约定校验
14
+ - 类型守卫:AST 节点与插件对象
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longzai-intelligence-oxlint/utils",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "license": "UNLICENSED",
5
5
  "files": [
6
6
  "dist"