@blumintinc/eslint-plugin-blumint 1.20.99 → 1.20.100

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.99',
226
+ version: '1.20.100',
227
227
  },
228
228
  parseOptions: {
229
229
  ecmaVersion: 2020,
@@ -421,14 +421,17 @@ exports.default = (0, createRule_1.createRule)({
421
421
  if (!declaredVariable) {
422
422
  return null;
423
423
  }
424
- // Exported symbols with in-file use sites are cross-file
425
- // contracts whose importers a single-file fixer cannot reach;
426
- // rewriting the local sites alone would still leave the export
427
- // renamed and importers broken. Report-only. (A bare exported
428
- // declaration with no extra references keeps the historical
429
- // rename behavior nothing to orphan in-file.)
430
- const hasExtraReferences = declaredVariable.references.some((ref) => ref.identifier !== idNode);
431
- if (isExported && hasExtraReferences) {
424
+ // An exported binding's name is a cross-file contract: every
425
+ // importer spells it out in a file this single-file fixer
426
+ // cannot reach, so renaming the declaration breaks them all
427
+ // (TS2724/TS2305, an unresolved JSX element, a `jest.mock`
428
+ // factory key). The hazard lives entirely in those other files,
429
+ // so it does not depend on whether the declaring file also uses
430
+ // the name a constants module with no local use sites is the
431
+ // most exposed shape, not the safest. Report-only; the sibling
432
+ // `as const` fix still applies because it never touches the
433
+ // export name.
434
+ if (isExported) {
432
435
  return null;
433
436
  }
434
437
  // Suppress the fix when `newName` already binds something in a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blumintinc/eslint-plugin-blumint",
3
- "version": "1.20.99",
3
+ "version": "1.20.100",
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.100",
4
+ "date": "2026-08-04T13:28:51.191Z",
5
+ "rules": [
6
+ {
7
+ "name": "global-const-style",
8
+ "changeType": "fix",
9
+ "issues": [
10
+ 1700
11
+ ],
12
+ "summary": "withhold the rename for every exported declaration (closes #1700)"
13
+ }
14
+ ]
15
+ },
2
16
  {
3
17
  "version": "1.20.99",
4
18
  "date": "2026-08-04T12:38:33.934Z",