@webority/biome-config 0.45.0 → 0.47.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.
- package/README.md +6 -1
- package/biome.jsonc +5 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -41,7 +41,12 @@ fails every file in the repo at once, drowning any real violation (one repo's le
|
|
|
41
41
|
|
|
42
42
|
- **Format:** 4-space, width 140, double quotes, semicolons, trailing commas, **LF line
|
|
43
43
|
endings** (`useEditorconfig: false`, so this file is the sole authority — see above).
|
|
44
|
-
- **`useExhaustiveDependencies:
|
|
44
|
+
- **`useExhaustiveDependencies: error`**: a missing hook dependency is a stale-closure bug
|
|
45
|
+
that builds clean. A deliberate trigger-only or run-once effect carries
|
|
46
|
+
`// biome-ignore lint/correctness/useExhaustiveDependencies: <reason>` on that hook. A repo
|
|
47
|
+
adopting this version records its existing violations once with
|
|
48
|
+
`biome lint --only=correctness/useExhaustiveDependencies --suppress --reason="<why>"`, so
|
|
49
|
+
every new violation still fails.
|
|
45
50
|
- **`noArrayIndexKey: warn`** — kept on (catches real dynamic-list bugs); genuine
|
|
46
51
|
static-list exceptions get a documented per-line `biome-ignore`.
|
|
47
52
|
- **`noConsole`** off for `scripts/**` + `logger.js`; CSS/SCSS not linted; the icon
|
package/biome.jsonc
CHANGED
|
@@ -49,9 +49,11 @@
|
|
|
49
49
|
// still read it, and a screen destructuring a context function the provider
|
|
50
50
|
// never exposed. Neither the build nor this config caught either.
|
|
51
51
|
"noUndeclaredVariables": "error",
|
|
52
|
-
//
|
|
53
|
-
// deliberate trigger-only
|
|
54
|
-
|
|
52
|
+
// A missing dependency is a stale-closure bug that builds and lints clean and
|
|
53
|
+
// shows up only as wrong data on screen. A deliberate trigger-only or run-once
|
|
54
|
+
// effect states its reason in a biome-ignore on that hook, so the omission is
|
|
55
|
+
// visible in review instead of silent.
|
|
56
|
+
"useExhaustiveDependencies": "error",
|
|
55
57
|
"useHookAtTopLevel": "error"
|
|
56
58
|
},
|
|
57
59
|
"style": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/biome-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.47.0",
|
|
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": {
|