@empjs/biome-config 2.2.0 → 2.3.11

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 +14 -6
  2. package/package.json +2 -2
package/biome.jsonc CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  // 标记为嵌套配置,不是根配置
3
3
  "root": false,
4
- // 引用 Biome 配置的 JSON Schema,提供代码提示和验证
5
- "$schema": "https://biomejs.dev/schemas/2.2.0/schema.json",
4
+ "$schema": "node_modules/@biomejs/biome/schema.json",
6
5
  // 文件处理配置
7
6
  "files": {
8
7
  // 忽略未知文件类型的错误
@@ -18,7 +17,7 @@
18
17
  "**/*.json", // JSON 文件
19
18
  "**/*.jsonc", // 带注释的 JSON 文件
20
19
  "**/*.css", // CSS 文件
21
- "**/*.html", // HTML 文件
20
+ "!**/*.html", // HTML 文件
22
21
  "**/emp-config.js", // EMP 配置文件
23
22
  "**/emp.config.js", // EMP 配置文件
24
23
  "**/emp-config.ts", // EMP TypeScript 配置文件
@@ -26,7 +25,7 @@
26
25
  "**/.vscode/**", // VS Code 配置文件
27
26
  "**/*.svelte", // Svelte 组件文件
28
27
  "**/*.astro", // Astro 组件文件
29
- "**/*.vue", // Vue 组件文件
28
+ "!**/*.vue", // Vue 组件文件
30
29
  // 排除的文件和目录
31
30
  "!**/dist", // 构建输出目录
32
31
  "!**/node_modules" // 依赖模块目录
@@ -37,6 +36,13 @@
37
36
  // 每行最大字符数
38
37
  "lineWidth": 120
39
38
  },
39
+ "html": {
40
+ "experimentalFullSupportEnabled": true,
41
+ "formatter": {
42
+ "enabled": true,
43
+ "indentScriptAndStyle": true
44
+ }
45
+ },
40
46
  // CSS 相关配置
41
47
  "css": {
42
48
  // CSS 格式化器
@@ -45,7 +51,8 @@
45
51
  },
46
52
  // CSS 解析器
47
53
  "parser": {
48
- "cssModules": true // 启用 CSS Modules 支持
54
+ "cssModules": true, // 启用 CSS Modules 支持
55
+ "tailwindDirectives": true
49
56
  },
50
57
  // CSS 检查器
51
58
  "linter": {
@@ -108,7 +115,8 @@
108
115
  "useOptionalChain": "off", // 关闭:强制使用可选链
109
116
  "useLiteralKeys": "off", // 关闭:强制使用字面量键
110
117
  "noUselessTernary": "off", // 关闭:禁止无用的三元表达式
111
- "noUselessFragments": "off"
118
+ "noUselessFragments": "off",
119
+ "noThisInStatic": "off"
112
120
  },
113
121
  // 正确性规则
114
122
  "correctness": {
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.11",
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.13"
30
30
  }
31
31
  }