@empjs/biome-config 2.1.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 +9 -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
  // 格式化器全局配置
@@ -118,10 +118,11 @@
118
118
  "noUnusedVariables": "off",
119
119
  "noUnusedImports": "off",
120
120
  "noUnusedFunctionParameters": "off",
121
- "noUnusedPrivateClassMembers": "off"
121
+ "noUnusedPrivateClassMembers": "off",
122
+ "noNestedComponentDefinitions": "off"
122
123
  },
123
124
  "nursery": {
124
- "noNestedComponentDefinitions": "off"
125
+ // "noNestedComponentDefinitions": "off"
125
126
  },
126
127
  // 性能规则
127
128
  "performance": {
@@ -159,7 +160,9 @@
159
160
  "noDuplicateProperties": "off",
160
161
  "noEmptyBlock": "off",
161
162
  "noTemplateCurlyInString": "off",
162
- "noDuplicateFontNames": "off"
163
+ "noDuplicateFontNames": "off",
164
+ "noUnknownAtRules": "off",
165
+ "useIterableCallbackReturn": "off"
163
166
  }
164
167
  }
165
168
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empjs/biome-config",
3
- "version": "2.1.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.1.2"
29
+ "@biomejs/biome": "2.2.0"
30
30
  }
31
31
  }