@empjs/biome-config 2.2.0 → 2.3.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 +12 -4
  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": "https://biomejs.dev/schemas/2.2.0/schema.json",
5
+ "$schema": "https://biomejs.dev/schemas/2.3.1/schema.json",
6
6
  // 文件处理配置
7
7
  "files": {
8
8
  // 忽略未知文件类型的错误
@@ -18,7 +18,7 @@
18
18
  "**/*.json", // JSON 文件
19
19
  "**/*.jsonc", // 带注释的 JSON 文件
20
20
  "**/*.css", // CSS 文件
21
- "**/*.html", // HTML 文件
21
+ "!**/*.html", // HTML 文件
22
22
  "**/emp-config.js", // EMP 配置文件
23
23
  "**/emp.config.js", // EMP 配置文件
24
24
  "**/emp-config.ts", // EMP TypeScript 配置文件
@@ -26,7 +26,7 @@
26
26
  "**/.vscode/**", // VS Code 配置文件
27
27
  "**/*.svelte", // Svelte 组件文件
28
28
  "**/*.astro", // Astro 组件文件
29
- "**/*.vue", // Vue 组件文件
29
+ "!**/*.vue", // Vue 组件文件
30
30
  // 排除的文件和目录
31
31
  "!**/dist", // 构建输出目录
32
32
  "!**/node_modules" // 依赖模块目录
@@ -37,6 +37,13 @@
37
37
  // 每行最大字符数
38
38
  "lineWidth": 120
39
39
  },
40
+ "html": {
41
+ "experimentalFullSupportEnabled": true,
42
+ "formatter": {
43
+ "enabled": true,
44
+ "indentScriptAndStyle": true
45
+ }
46
+ },
40
47
  // CSS 相关配置
41
48
  "css": {
42
49
  // CSS 格式化器
@@ -45,7 +52,8 @@
45
52
  },
46
53
  // CSS 解析器
47
54
  "parser": {
48
- "cssModules": true // 启用 CSS Modules 支持
55
+ "cssModules": true, // 启用 CSS Modules 支持
56
+ "tailwindDirectives": true
49
57
  },
50
58
  // CSS 检查器
51
59
  "linter": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empjs/biome-config",
3
- "version": "2.2.0",
3
+ "version": "2.3.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.2.0"
29
+ "@biomejs/biome": "2.3.1"
30
30
  }
31
31
  }