@empjs/biome-config 2.0.0 → 2.2.0

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/biome.jsonc +11 -6
  2. package/package.json +2 -2
package/biome.jsonc CHANGED
@@ -2,7 +2,7 @@
2
2
  // 标记为嵌套配置,不是根配置
3
3
  "root": false,
4
4
  // 引用 Biome 配置的 JSON Schema,提供代码提示和验证
5
- "$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
5
+ "$schema": "https://biomejs.dev/schemas/2.2.0/schema.json",
6
6
  // 文件处理配置
7
7
  "files": {
8
8
  // 忽略未知文件类型的错误
@@ -28,8 +28,8 @@
28
28
  "**/*.astro", // Astro 组件文件
29
29
  "**/*.vue", // Vue 组件文件
30
30
  // 排除的文件和目录
31
- "!**/dist/**", // 构建输出目录
32
- "!**/node_modules/**" // 依赖模块目录
31
+ "!**/dist", // 构建输出目录
32
+ "!**/node_modules" // 依赖模块目录
33
33
  ]
34
34
  },
35
35
  // 格式化器全局配置
@@ -117,13 +117,16 @@
117
117
  "useHookAtTopLevel": "off", // 关闭:Hook 必须在顶层调用
118
118
  "noUnusedVariables": "off",
119
119
  "noUnusedImports": "off",
120
- "noUnusedFunctionParameters": "off"
120
+ "noUnusedFunctionParameters": "off",
121
+ "noUnusedPrivateClassMembers": "off",
122
+ "noNestedComponentDefinitions": "off"
121
123
  },
122
124
  "nursery": {
123
- "noNestedComponentDefinitions": "off"
125
+ // "noNestedComponentDefinitions": "off"
124
126
  },
125
127
  // 性能规则
126
128
  "performance": {
129
+ "noAccumulatingSpread": "off",
127
130
  "noDelete": "off" // 关闭:禁止使用 delete 操作符
128
131
  },
129
132
  // 启用推荐规则集
@@ -157,7 +160,9 @@
157
160
  "noDuplicateProperties": "off",
158
161
  "noEmptyBlock": "off",
159
162
  "noTemplateCurlyInString": "off",
160
- "noDuplicateFontNames": "off"
163
+ "noDuplicateFontNames": "off",
164
+ "noUnknownAtRules": "off",
165
+ "useIterableCallbackReturn": "off"
161
166
  }
162
167
  }
163
168
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empjs/biome-config",
3
- "version": "2.0.0",
3
+ "version": "2.2.0",
4
4
  "main": "biome.jsonc",
5
5
  "type": "module",
6
6
  "bin": {
@@ -26,6 +26,6 @@
26
26
  "access": "public"
27
27
  },
28
28
  "dependencies": {
29
- "@biomejs/biome": "^2.0.5"
29
+ "@biomejs/biome": "2.2.0"
30
30
  }
31
31
  }