@blumintinc/eslint-plugin-blumint 1.19.31 → 1.19.32
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/lib/index.js
CHANGED
|
@@ -961,6 +961,14 @@ function isDefinitelyNonBooleanExpression(node) {
|
|
|
961
961
|
case utils_1.AST_NODE_TYPES.ConditionalExpression:
|
|
962
962
|
return (isDefinitelyNonBooleanExpression(node.consequent) ||
|
|
963
963
|
isDefinitelyNonBooleanExpression(node.alternate));
|
|
964
|
+
// Unwrap type-only expression wrappers (`'msg' as const`, `x satisfies T`,
|
|
965
|
+
// `x!`) so an asserted string/number literal is still recognized. Unwrapping
|
|
966
|
+
// can only expose a non-boolean literal, never mask a real boolean, so it
|
|
967
|
+
// cannot over-exempt a genuinely negatively-named boolean.
|
|
968
|
+
case utils_1.AST_NODE_TYPES.TSAsExpression:
|
|
969
|
+
case utils_1.AST_NODE_TYPES.TSSatisfiesExpression:
|
|
970
|
+
case utils_1.AST_NODE_TYPES.TSNonNullExpression:
|
|
971
|
+
return isDefinitelyNonBooleanExpression(node.expression);
|
|
964
972
|
default:
|
|
965
973
|
return false;
|
|
966
974
|
}
|
package/package.json
CHANGED
package/release-manifest.json
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "1.19.32",
|
|
4
|
+
"date": "2026-07-24T00:36:05.744Z",
|
|
5
|
+
"rules": [
|
|
6
|
+
{
|
|
7
|
+
"name": "enforce-positive-naming",
|
|
8
|
+
"changeType": "fix",
|
|
9
|
+
"issues": [
|
|
10
|
+
1344
|
|
11
|
+
],
|
|
12
|
+
"summary": "recognize wrapped and annotated non-boolean validator returns"
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
},
|
|
2
16
|
{
|
|
3
17
|
"version": "1.19.31",
|
|
4
18
|
"date": "2026-07-24T00:26:32.378Z",
|