@webority/biome-config 0.9.1 → 0.9.3
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 +16 -5
- package/package.json +1 -1
package/biome.jsonc
CHANGED
|
@@ -45,7 +45,20 @@
|
|
|
45
45
|
"style": {
|
|
46
46
|
"useTemplate": "off",
|
|
47
47
|
"noDescendingSpecificity": "off",
|
|
48
|
-
|
|
48
|
+
// Cannot tell that a re-exported identifier is a component, so the ordinary
|
|
49
|
+
// export function AppAmount() {}
|
|
50
|
+
// export default AppAmount;
|
|
51
|
+
// is reported as "exporting a non-component with components". Since declaring
|
|
52
|
+
// a component and also default-exporting it is the normal shape, the rule
|
|
53
|
+
// fires on correct code in every consuming project — dozens of warnings in a
|
|
54
|
+
// single icon module, and the two carve-outs this file already needed for
|
|
55
|
+
// AppIcon/ModalIcons.
|
|
56
|
+
//
|
|
57
|
+
// Its only payoff is Fast Refresh keeping state on edit. A warning that fires
|
|
58
|
+
// on correct code teaches people to filter the output, and that filter takes
|
|
59
|
+
// the real findings with it. Decided once here, rather than leaving each
|
|
60
|
+
// project to add its own override.
|
|
61
|
+
"useComponentExportOnlyModules": "off"
|
|
49
62
|
},
|
|
50
63
|
"suspicious": {
|
|
51
64
|
// Valuable on dynamic lists (reorder/reconciliation bugs). Genuine
|
|
@@ -99,13 +112,11 @@
|
|
|
99
112
|
}
|
|
100
113
|
},
|
|
101
114
|
{
|
|
102
|
-
// The icon modules co-export a component + their glyph/name maps by design
|
|
115
|
+
// The icon modules co-export a component + their glyph/name maps by design, and
|
|
116
|
+
// index their static name lists positionally.
|
|
103
117
|
"includes": ["**/AppIcon.jsx", "**/ModalIcons.jsx"],
|
|
104
118
|
"linter": {
|
|
105
119
|
"rules": {
|
|
106
|
-
"style": {
|
|
107
|
-
"useComponentExportOnlyModules": "off"
|
|
108
|
-
},
|
|
109
120
|
"suspicious": {
|
|
110
121
|
"noArrayIndexKey": "off"
|
|
111
122
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/biome-config",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.3",
|
|
4
4
|
"description": "Shared Biome lint + format policy for Webority frontend products. Extend it from a product biome.json so every repo inherits one fleet-decided ruleset, bumped by version — no per-repo drift.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"publishConfig": {
|