@longzai-intelligence-oxlint/react-plugin 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.
- package/README.md +6 -11
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
# @longzai-intelligence-oxlint/react-plugin
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Longzai Intelligence Oxlint 的 React 规则插件,守护 Hook 命名约定。
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## 简介
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
治理 Hook 命名误判的问题:以 `use` 前缀命名的函数是否符合 Hook 语义约束在静态检查阶段校验,防止错误的 Hook 命名导致 Hooks 规则误判。
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## 能力
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
提供 `no-incorrect-hook-naming` 规则,校验以 `use` 前缀命名的函数是否符合 Hook 语义约束。
|
|
14
|
-
|
|
15
|
-
## 实现情况
|
|
16
|
-
|
|
17
|
-
当前仅落地 Hook 命名一条规则,规则与插件对象均已导出;其余 React 专属规则尚未纳入,整体处于聚焦单点的成熟形态。
|
|
11
|
+
- `no-incorrect-hook-naming` — 校验 `use` 前缀函数的 Hook 语义约束
|
|
12
|
+
- 同时兼容 Oxlint 与 ESLint 运行时
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@longzai-intelligence-oxlint/react-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"typecheck:test": "lzi-tsgo typecheck tsconfig/test.json"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@longzai-intelligence-oxlint/core": "0.1.
|
|
38
|
+
"@longzai-intelligence-oxlint/core": "0.1.20",
|
|
39
39
|
"@oxlint/plugins": "^1.74.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|