@longzai-intelligence-oxlint/stylistic-plugin 0.1.17 → 0.1.19

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 +2 -2
package/README.md CHANGED
@@ -1,17 +1,14 @@
1
1
  # @longzai-intelligence-oxlint/stylistic-plugin
2
2
 
3
- ## 意图
3
+ Longzai Intelligence Oxlint 的排版风格插件,统一代码排版风格。
4
4
 
5
- 在静态检查阶段统一代码排版风格,对标 ESLint 生态 @stylistic 插件,避免格式类问题流入代码评审。
5
+ ## 简介
6
6
 
7
- ## 定位
7
+ 治理排版风格漂移的问题:多行注释风格、注释前后空行与语句间空行在静态检查阶段统一约束,防止格式类问题流入代码评审。
8
8
 
9
- Oxlint 生态的 stylistic 规则实现插件,通过 `eslintCompatPlugin` 包装以同时兼容 Oxlint 与 ESLint 运行时。
9
+ ## 能力
10
10
 
11
- ## 职能
12
-
13
- 提供 `multiline-comment-style` 规则约束多行注释风格、`lines-around-comment` 规则约束注释前后空行、`padding-line-between-statements` 规则约束语句间空行;使用 `defineRule` + `createOnce` 实现以获得最佳性能。
14
-
15
- ## 实现情况
16
-
17
- 三条规则均已实现并按规则文件组织,规则集合与插件对象一并导出;当前规则集合聚焦排版维度,处于稳定可用形态。
11
+ - `multiline-comment-style` — 多行注释风格约束
12
+ - `lines-around-comment` — 注释前后空行约束
13
+ - `padding-line-between-statements` — 语句间空行约束
14
+ - 同时兼容 Oxlint 与 ESLint 运行时
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longzai-intelligence-oxlint/stylistic-plugin",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "description": "Oxlint stylistic 兼容插件,提供 @stylistic 规则的 Oxlint 实现",
5
5
  "license": "UNLICENSED",
6
6
  "files": [
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@longzai-intelligence-logger/node": "^0.1.1",
40
- "@longzai-intelligence-oxlint/core": "0.1.17",
40
+ "@longzai-intelligence-oxlint/core": "0.1.19",
41
41
  "@oxlint/plugins": "^1.74.0"
42
42
  },
43
43
  "devDependencies": {