@blumintinc/eslint-plugin-blumint 1.20.16 → 1.20.17

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.16',
226
+ version: '1.20.17',
227
227
  },
228
228
  parseOptions: {
229
229
  ecmaVersion: 2020,
@@ -83,6 +83,13 @@ exports.noMockFirebaseAdmin = (0, createRule_1.createRule)({
83
83
  node.arguments[0].type === utils_1.AST_NODE_TYPES.TemplateLiteral)) {
84
84
  let mockPath = '';
85
85
  if (node.arguments[0].type === utils_1.AST_NODE_TYPES.TemplateLiteral) {
86
+ // An interpolated specifier names a module only known at runtime:
87
+ // `../../config/firebaseAdmin${env}` targets firebaseAdminStaging,
88
+ // not firebaseAdmin. Reading the leading quasi alone would attribute
89
+ // it to whichever module the static prefix happens to spell.
90
+ if (node.arguments[0].expressions.length > 0) {
91
+ return;
92
+ }
86
93
  mockPath = node.arguments[0].quasis[0].value.raw;
87
94
  }
88
95
  else if (node.arguments[0].type === utils_1.AST_NODE_TYPES.Literal) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blumintinc/eslint-plugin-blumint",
3
- "version": "1.20.16",
3
+ "version": "1.20.17",
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.17",
4
+ "date": "2026-07-29T10:47:56.581Z",
5
+ "rules": [
6
+ {
7
+ "name": "no-mock-firebase-admin",
8
+ "changeType": "fix",
9
+ "issues": [
10
+ 1386
11
+ ],
12
+ "summary": "skip interpolated jest.mock specifiers (closes #1386)"
13
+ }
14
+ ]
15
+ },
2
16
  {
3
17
  "version": "1.20.16",
4
18
  "date": "2026-07-29T10:30:50.111Z",