From 5d67f75be7fc4df55372bcfd5e20855887aaad95 Mon Sep 17 00:00:00 2001
From: Rajat Parashar <parasharrajat@users.noreply.github.com>
Date: Fri, 4 Jul 2025 21:18:20 +0530
Subject: [PATCH 1/2] Enable Beta-handler rule

---
 .eslintrc.js            | 1 +
 package-lock.json       | 8 ++++----
 package.json            | 2 +-
 src/libs/Permissions.ts | 2 ++
 4 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/.eslintrc.js b/.eslintrc.js
index f582c245eb1c..236cc17d3f8b 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -230,6 +230,7 @@ module.exports = {
         'rulesdir/no-multiple-onyx-in-file': 'off',
         'rulesdir/prefer-underscore-method': 'off',
         'rulesdir/prefer-import-module-contents': 'off',
+        'rulesdir/no-beta-handler': 'error',
 
         // React and React Native specific rules
         'react-native-a11y/has-accessibility-hint': ['off'],
diff --git a/package-lock.json b/package-lock.json
index f926bca9369d..32d70882ac84 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -237,7 +237,7 @@
         "electron-builder": "25.0.0",
         "eslint": "^8.57.0",
         "eslint-config-airbnb-typescript": "^18.0.0",
-        "eslint-config-expensify": "2.0.82",
+        "eslint-config-expensify": "2.0.83",
         "eslint-config-prettier": "^9.1.0",
         "eslint-plugin-deprecation": "^3.0.0",
         "eslint-plugin-jest": "^28.6.0",
@@ -20689,9 +20689,9 @@
       }
     },
     "node_modules/eslint-config-expensify": {
-      "version": "2.0.82",
-      "resolved": "https://registry.npmjs.org/eslint-config-expensify/-/eslint-config-expensify-2.0.82.tgz",
-      "integrity": "sha512-F46EJBwYn38xZslu4/Octc10ilefIK+lF5vN7gERuABshWcmtPzfTYHWM7U5u1GwV7OYfEXEIy/cprJS5uEuNA==",
+      "version": "2.0.83",
+      "resolved": "https://registry.npmjs.org/eslint-config-expensify/-/eslint-config-expensify-2.0.83.tgz",
+      "integrity": "sha512-Q0ZL/xBfVGAVwcMdHBaSfaS9B75BruEAFq8qw0RKNvtr6PQE8j7sjftdGuPRJA90e9zUqYxHXs96YQVruB1cNA==",
       "dev": true,
       "license": "ISC",
       "dependencies": {
diff --git a/package.json b/package.json
index ac2db95711ea..78ddfbfb690c 100644
--- a/package.json
+++ b/package.json
@@ -306,7 +306,7 @@
     "electron-builder": "25.0.0",
     "eslint": "^8.57.0",
     "eslint-config-airbnb-typescript": "^18.0.0",
-    "eslint-config-expensify": "2.0.82",
+    "eslint-config-expensify": "2.0.83",
     "eslint-config-prettier": "^9.1.0",
     "eslint-plugin-deprecation": "^3.0.0",
     "eslint-plugin-jest": "^28.6.0",
diff --git a/src/libs/Permissions.ts b/src/libs/Permissions.ts
index 029052dfd733..408df3326275 100644
--- a/src/libs/Permissions.ts
+++ b/src/libs/Permissions.ts
@@ -2,10 +2,12 @@ import type {OnyxEntry} from 'react-native-onyx';
 import CONST from '@src/CONST';
 import type Beta from '@src/types/onyx/Beta';
 
+// eslint-disable-next-line rulesdir/no-beta-handler
 function canUseAllBetas(betas: OnyxEntry<Beta[]>): boolean {
     return !!betas?.includes(CONST.BETAS.ALL);
 }
 
+// eslint-disable-next-line rulesdir/no-beta-handler
 function isBlockedFromSpotnanaTravel(betas: OnyxEntry<Beta[]>): boolean {
     // Don't check for all betas or nobody can use test travel on dev
     return !!betas?.includes(CONST.BETAS.PREVENT_SPOTNANA_TRAVEL);

From fe24e731ebce105a4fb6f3f4020dce4ade1d385b Mon Sep 17 00:00:00 2001
From: Rajat Parashar <parasharrajat@users.noreply.github.com>
Date: Fri, 4 Jul 2025 22:32:42 +0530
Subject: [PATCH 2/2] Update package

---
 package-lock.json | 8 ++++----
 package.json      | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/package-lock.json b/package-lock.json
index 32d70882ac84..96248d30679c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -237,7 +237,7 @@
         "electron-builder": "25.0.0",
         "eslint": "^8.57.0",
         "eslint-config-airbnb-typescript": "^18.0.0",
-        "eslint-config-expensify": "2.0.83",
+        "eslint-config-expensify": "2.0.84",
         "eslint-config-prettier": "^9.1.0",
         "eslint-plugin-deprecation": "^3.0.0",
         "eslint-plugin-jest": "^28.6.0",
@@ -20689,9 +20689,9 @@
       }
     },
     "node_modules/eslint-config-expensify": {
-      "version": "2.0.83",
-      "resolved": "https://registry.npmjs.org/eslint-config-expensify/-/eslint-config-expensify-2.0.83.tgz",
-      "integrity": "sha512-Q0ZL/xBfVGAVwcMdHBaSfaS9B75BruEAFq8qw0RKNvtr6PQE8j7sjftdGuPRJA90e9zUqYxHXs96YQVruB1cNA==",
+      "version": "2.0.84",
+      "resolved": "https://registry.npmjs.org/eslint-config-expensify/-/eslint-config-expensify-2.0.84.tgz",
+      "integrity": "sha512-g8BGpLboze/yV5APA8SdwPVZgJzFLQq/LVooPMz6LiRLkEPfmjN13/IBR0u1ORI6D8VeCV9qcG/gwI89ZTmC/A==",
       "dev": true,
       "license": "ISC",
       "dependencies": {
diff --git a/package.json b/package.json
index 78ddfbfb690c..a5fe6d6a5314 100644
--- a/package.json
+++ b/package.json
@@ -306,7 +306,7 @@
     "electron-builder": "25.0.0",
     "eslint": "^8.57.0",
     "eslint-config-airbnb-typescript": "^18.0.0",
-    "eslint-config-expensify": "2.0.83",
+    "eslint-config-expensify": "2.0.84",
     "eslint-config-prettier": "^9.1.0",
     "eslint-plugin-deprecation": "^3.0.0",
     "eslint-plugin-jest": "^28.6.0",
