@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 +1 -1
- package/lib/rules/global-const-style.js +11 -8
- package/package.json +1 -1
- package/release-manifest.json +14 -0
package/lib/index.js
CHANGED
|
@@ -421,14 +421,17 @@ exports.default = (0, createRule_1.createRule)({
|
|
|
421
421
|
if (!declaredVariable) {
|
|
422
422
|
return null;
|
|
423
423
|
}
|
|
424
|
-
//
|
|
425
|
-
//
|
|
426
|
-
//
|
|
427
|
-
//
|
|
428
|
-
//
|
|
429
|
-
//
|
|
430
|
-
|
|
431
|
-
|
|
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
package/release-manifest.json
CHANGED
|
@@ -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",
|