@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
@@ -222,7 +222,7 @@ function noFrontendImportsFromFunctionsPatterns(pattern) {
222
222
  module.exports = {
223
223
  meta: {
224
224
  name: '@blumintinc/eslint-plugin-blumint',
225
- version: '1.19.31',
225
+ version: '1.19.32',
226
226
  },
227
227
  parseOptions: {
228
228
  ecmaVersion: 2020,
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blumintinc/eslint-plugin-blumint",
3
- "version": "1.19.31",
3
+ "version": "1.19.32",
4
4
  "description": "Custom eslint rules for use within BluMint",
5
5
  "author": {
6
6
  "name": "Brodie McGuire",
@@ -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",