@empjs/biome-config 2.0.0-beta.1 → 2.0.0-beta.2
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.
- package/biome.jsonc +17 -4
- package/package.json +1 -1
package/biome.jsonc
CHANGED
|
@@ -96,7 +96,9 @@
|
|
|
96
96
|
"useAltText": "off", // 关闭:图片必须有 alt 文本
|
|
97
97
|
"useButtonType": "off", // 关闭:button 必须有 type 属性
|
|
98
98
|
"useValidAnchor": "off", // 关闭:a 标签必须有有效的 href
|
|
99
|
-
"useKeyWithClickEvents": "off" // 关闭:点击事件必须配合键盘事件
|
|
99
|
+
"useKeyWithClickEvents": "off", // 关闭:点击事件必须配合键盘事件
|
|
100
|
+
"noStaticElementInteractions": "off",
|
|
101
|
+
"noNoninteractiveTabindex": "off"
|
|
100
102
|
},
|
|
101
103
|
// 复杂度规则
|
|
102
104
|
"complexity": {
|
|
@@ -105,13 +107,20 @@
|
|
|
105
107
|
"useArrowFunction": "off", // 关闭:强制使用箭头函数
|
|
106
108
|
"useOptionalChain": "off", // 关闭:强制使用可选链
|
|
107
109
|
"useLiteralKeys": "off", // 关闭:强制使用字面量键
|
|
108
|
-
"noUselessTernary": "off" // 关闭:禁止无用的三元表达式
|
|
110
|
+
"noUselessTernary": "off", // 关闭:禁止无用的三元表达式
|
|
111
|
+
"noUselessFragments": "off"
|
|
109
112
|
},
|
|
110
113
|
// 正确性规则
|
|
111
114
|
"correctness": {
|
|
112
115
|
"noUnreachable": "off", // 关闭:禁止不可达代码
|
|
113
116
|
"useExhaustiveDependencies": "off", // 关闭:React Hook 依赖项检查
|
|
114
|
-
"useHookAtTopLevel": "off" // 关闭:Hook 必须在顶层调用
|
|
117
|
+
"useHookAtTopLevel": "off", // 关闭:Hook 必须在顶层调用
|
|
118
|
+
"noUnusedVariables": "off",
|
|
119
|
+
"noUnusedImports": "off",
|
|
120
|
+
"noUnusedFunctionParameters": "off"
|
|
121
|
+
},
|
|
122
|
+
"nursery": {
|
|
123
|
+
"noNestedComponentDefinitions": "off"
|
|
115
124
|
},
|
|
116
125
|
// 性能规则
|
|
117
126
|
"performance": {
|
|
@@ -144,7 +153,11 @@
|
|
|
144
153
|
"noDoubleEquals": "off", // 关闭:禁止使用 ==
|
|
145
154
|
"noExplicitAny": "off", // 关闭:禁止显式 any 类型
|
|
146
155
|
"noGlobalIsNan": "off", // 关闭:禁止使用全局 isNaN
|
|
147
|
-
"noImplicitAnyLet": "off" // 关闭:禁止隐式 any 的 let 声明
|
|
156
|
+
"noImplicitAnyLet": "off", // 关闭:禁止隐式 any 的 let 声明
|
|
157
|
+
"noDuplicateProperties": "off",
|
|
158
|
+
"noEmptyBlock": "off",
|
|
159
|
+
"noTemplateCurlyInString": "off",
|
|
160
|
+
"noDuplicateFontNames": "off"
|
|
148
161
|
}
|
|
149
162
|
}
|
|
150
163
|
},
|