@blumintinc/eslint-plugin-blumint 1.20.53 → 1.20.54

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
@@ -223,7 +223,7 @@ function noFrontendImportsFromFunctionsPatterns(pattern) {
223
223
  module.exports = {
224
224
  meta: {
225
225
  name: '@blumintinc/eslint-plugin-blumint',
226
- version: '1.20.53',
226
+ version: '1.20.54',
227
227
  },
228
228
  parseOptions: {
229
229
  ecmaVersion: 2020,
@@ -78,11 +78,16 @@ exports.exportIfInDoubt = (0, createRule_1.createRule)({
78
78
  !exportedIdentifiers.includes(node.id.name)) {
79
79
  const name = node.id.name;
80
80
  const kind = getDeclarationKind(node);
81
+ // The only remedy is prepending `export` to the declaration that
82
+ // is already there, so everything past the name is elided with
83
+ // `…`. A concrete-looking stand-in (`= undefined`, `() {}`,
84
+ // `= unknown`) reads as code to paste over the declaration and
85
+ // silently destroys its initializer, parameters, body, or type.
81
86
  const exportExample = node.type === 'VariableDeclarator'
82
- ? `export ${kind} ${name} = undefined;`
87
+ ? `export ${kind} ${name} = …;`
83
88
  : node.type === 'FunctionDeclaration'
84
- ? `export function ${name}() {}`
85
- : `export type ${name} = unknown;`;
89
+ ? `export function ${name}() {}`
90
+ : `export type ${name} = …;`;
86
91
  context.report({
87
92
  node,
88
93
  messageId: 'exportIfInDoubt',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blumintinc/eslint-plugin-blumint",
3
- "version": "1.20.53",
3
+ "version": "1.20.54",
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.20.54",
4
+ "date": "2026-08-01T01:37:34.774Z",
5
+ "rules": [
6
+ {
7
+ "name": "export-if-in-doubt",
8
+ "changeType": "fix",
9
+ "issues": [
10
+ 1543
11
+ ],
12
+ "summary": "elide the remedy example instead of fabricating a destructive value (closes #1543)"
13
+ }
14
+ ]
15
+ },
2
16
  {
3
17
  "version": "1.20.53",
4
18
  "date": "2026-08-01T00:55:57.763Z",