@webority/biome-config 0.146.2 → 0.147.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/biome.jsonc +12 -0
- package/package.json +1 -1
package/biome.jsonc
CHANGED
|
@@ -91,7 +91,17 @@
|
|
|
91
91
|
"useExhaustiveDependencies": "error",
|
|
92
92
|
"useHookAtTopLevel": "error"
|
|
93
93
|
},
|
|
94
|
+
"nursery": {
|
|
95
|
+
// A promise nobody awaits loses its ordering and its error. Await it, handle it, or mark
|
|
96
|
+
// it with void when nothing waits on it: void keeps a rejection unhandled, so it still
|
|
97
|
+
// reaches the page's unhandled-rejection reporting.
|
|
98
|
+
"noFloatingPromises": "error",
|
|
99
|
+
// A switch over a union that misses a member is a silent fall-through to the default.
|
|
100
|
+
"useExhaustiveSwitchCases": "error"
|
|
101
|
+
},
|
|
94
102
|
"style": {
|
|
103
|
+
// A forced non-null hides the case the type says can happen.
|
|
104
|
+
"noNonNullAssertion": "error",
|
|
95
105
|
// Style rule with a safe fix.
|
|
96
106
|
"useTemplate": "error",
|
|
97
107
|
// CSS is not linted here.
|
|
@@ -122,6 +132,8 @@
|
|
|
122
132
|
// An assignment inside a condition is usually a typo.
|
|
123
133
|
"noAssignInExpressions": "error",
|
|
124
134
|
"noDuplicateProperties": "error",
|
|
135
|
+
// An untyped value switches type checking off for everything it touches.
|
|
136
|
+
"noExplicitAny": "error",
|
|
125
137
|
// Apps log through the web-core Logger, and a library through its one diagnostics
|
|
126
138
|
// module (devWarn and devError). Any other console call fails lint.
|
|
127
139
|
"noConsole": "error"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/biome-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.147.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 shared ruleset, bumped by version — no per-repo drift.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"publishConfig": {
|