From 470b8abb69670795f02325b450a10c63a3ca64af Mon Sep 17 00:00:00 2001
From: Nick Schonning <nschonni@gmail.com>
Date: Sun, 30 Apr 2023 00:46:16 -0400
Subject: [PATCH] Run Rubocop with lint-staged on commit (#24644)

---
 package.json | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package.json b/package.json
index 38323d925..0460aa4f0 100644
--- a/package.json
+++ b/package.json
@@ -212,6 +212,7 @@
   },
   "lint-staged": {
     "*": "prettier --ignore-unknown --write",
+    "Capfile|Gemfile|*.{rb,ruby,ru,rake}": "bundle exec rubocop -a",
     "*.{js,jsx,ts,tsx}": "eslint --fix",
     "*.{css,scss}": "stylelint --fix"
   }