[PR #4925] [MERGED] chore: remove unused imports #4825

Closed
opened 2026-02-22 18:36:36 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4925
Author: @angelplusultra
Created: 1/28/2026
Status: Merged
Merged: 1/28/2026
Merged by: @timothycarambat

Base: 4917-enable-essential-rules-and-apply-fixes-in-frontend-eslintHead: 4917-remove-unused-imports


📝 Commits (1)

📊 Changes

4 files changed (+3 additions, -4 deletions)

View changed files

📝 frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SpeechToText/index.jsx (+1 -1)
📝 frontend/src/pages/Admin/ExperimentalFeatures/features.js (+0 -1)
📝 frontend/src/pages/GeneralSettings/AudioPreference/index.jsx (+1 -1)
📝 frontend/src/pages/GeneralSettings/Settings/components/SpellCheck/index.jsx (+1 -1)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

Base PR: #4923

What is in this change?

Removes unused imports flagged by the ESLint unused-imports plugin enabled in the parent branch:

  • SpeechToText/index.jsx: Changed _regeneratorRuntime named import to a side-effect import (polyfill only needs to be loaded, not referenced)
  • features.js: Removed unused paths import
  • AudioPreference/index.jsx: Removed unused useRef from React imports
  • SpellCheck/index.jsx: Removed unused useEffect from React imports

Additional Information

Part of the frontend ESLint cleanup series for #4917.

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/4925 **Author:** [@angelplusultra](https://github.com/angelplusultra) **Created:** 1/28/2026 **Status:** ✅ Merged **Merged:** 1/28/2026 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `4917-enable-essential-rules-and-apply-fixes-in-frontend-eslint` ← **Head:** `4917-remove-unused-imports` --- ### 📝 Commits (1) - [`74c6424`](https://github.com/Mintplex-Labs/anything-llm/commit/74c64241822fe792edc43ca9e4b4b252f59ad832) remove unused imports ### 📊 Changes **4 files changed** (+3 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SpeechToText/index.jsx` (+1 -1) 📝 `frontend/src/pages/Admin/ExperimentalFeatures/features.js` (+0 -1) 📝 `frontend/src/pages/GeneralSettings/AudioPreference/index.jsx` (+1 -1) 📝 `frontend/src/pages/GeneralSettings/Settings/components/SpellCheck/index.jsx` (+1 -1) </details> ### 📄 Description ### Pull Request Type - [ ] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [x] 🔨 chore - [ ] 📝 docs ### Relevant Issues Base PR: #4923 ### What is in this change? Removes unused imports flagged by the ESLint `unused-imports` plugin enabled in the parent branch: - **SpeechToText/index.jsx**: Changed `_regeneratorRuntime` named import to a side-effect import (polyfill only needs to be loaded, not referenced) - **features.js**: Removed unused `paths` import - **AudioPreference/index.jsx**: Removed unused `useRef` from React imports - **SpellCheck/index.jsx**: Removed unused `useEffect` from React imports ### Additional Information Part of the frontend ESLint cleanup series for #4917. ### Developer Validations - [x] I ran `yarn lint` from the root of the repo & committed changes - [ ] Relevant documentation has been updated - [x] I have tested my code functionality - [ ] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:36:36 -05:00
yindo closed this issue 2026-02-22 18:36:36 -05:00
yindo changed title from [PR #4925] chore: remove unused imports to [PR #4925] [MERGED] chore: remove unused imports 2026-06-05 15:20:34 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4825