[PR #4785] [MERGED] Add Eslint Config in /frontend #4770

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4785
Author: @angelplusultra
Created: 12/15/2025
Status: Merged
Merged: 12/16/2025
Merged by: @timothycarambat

Base: masterHead: refactor-eslint-frontend


📝 Commits (10+)

  • e7c5d2f Add local ESLint configuration and disable rules to allow for errorless state
  • 6ca12f3 Remove unnecessary ESLint disable comments in AuthContext and usePromptInputStorage for cleaner code.
  • a5b59bc Update eslint-plugin-react-hooks
  • e484faa Configure prettier to work with eslint
  • fe41c3a Removed trailing commas from eslint config
  • ac2a0ab Prettier to source code
  • bd616f5 add a v2 lint script
  • 7d19f66 put back eslint-disable comments
  • 2d4dabb Merge branch 'master' into refactor-eslint-frontend
  • 48f8abb Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into refactor-eslint-frontend

📊 Changes

6 files changed (+1144 additions, -296 deletions)

View changed files

📝 .github/workflows/dev-build.yaml (+1 -1)
frontend/eslint.config.js (+46 -0)
📝 frontend/package.json (+7 -5)
📝 frontend/src/AuthContext.jsx (+0 -1)
📝 frontend/src/hooks/usePromptInputStorage.js (+0 -1)
📝 frontend/yarn.lock (+1090 -288)

📄 Description

Pull Request Type

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

What is in this change?

This PR introduces an ESLint configuration scoped to the /frontend repository. It integrates ESLint with Prettier via the eslint-plugin-prettier package, allowing eslint --fix to both lint the code for issues and apply Prettier-based formatting automatically.

All existing rules that currently produce linting errors in /frontend have been temporarily disabled. These will be addressed and re-enabled in a follow-up PR.

Additional Information

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/4785 **Author:** [@angelplusultra](https://github.com/angelplusultra) **Created:** 12/15/2025 **Status:** ✅ Merged **Merged:** 12/16/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `refactor-eslint-frontend` --- ### 📝 Commits (10+) - [`e7c5d2f`](https://github.com/Mintplex-Labs/anything-llm/commit/e7c5d2f89a8747a96bb5c8683607ab276ae460f5) Add local ESLint configuration and disable rules to allow for errorless state - [`6ca12f3`](https://github.com/Mintplex-Labs/anything-llm/commit/6ca12f3195997326dba7fccf7c95a6665fcfa424) Remove unnecessary ESLint disable comments in AuthContext and usePromptInputStorage for cleaner code. - [`a5b59bc`](https://github.com/Mintplex-Labs/anything-llm/commit/a5b59bc662bd472b65280adc67d79a66cef7c29a) Update eslint-plugin-react-hooks - [`e484faa`](https://github.com/Mintplex-Labs/anything-llm/commit/e484faab6b2b063d3d924c5b2b8541aba746abf4) Configure prettier to work with eslint - [`fe41c3a`](https://github.com/Mintplex-Labs/anything-llm/commit/fe41c3a495a760b408742afc7c1dcd8be1aa13b9) Removed trailing commas from eslint config - [`ac2a0ab`](https://github.com/Mintplex-Labs/anything-llm/commit/ac2a0abf9e8708c6f569d208ac472a4213a8927d) Prettier to source code - [`bd616f5`](https://github.com/Mintplex-Labs/anything-llm/commit/bd616f53bcd17f5d86e35d8db42aff3f1076483a) add a v2 lint script - [`7d19f66`](https://github.com/Mintplex-Labs/anything-llm/commit/7d19f66010efc605ba7915c8dc1d11447bdd2ead) put back eslint-disable comments - [`2d4dabb`](https://github.com/Mintplex-Labs/anything-llm/commit/2d4dabb37a3dc4ee3ee2e09343f572c54f058a4f) Merge branch 'master' into refactor-eslint-frontend - [`48f8abb`](https://github.com/Mintplex-Labs/anything-llm/commit/48f8abb36d6a450a240cf4f3d076e4a5148b264c) Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into refactor-eslint-frontend ### 📊 Changes **6 files changed** (+1144 additions, -296 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/dev-build.yaml` (+1 -1) ➕ `frontend/eslint.config.js` (+46 -0) 📝 `frontend/package.json` (+7 -5) 📝 `frontend/src/AuthContext.jsx` (+0 -1) 📝 `frontend/src/hooks/usePromptInputStorage.js` (+0 -1) 📝 `frontend/yarn.lock` (+1090 -288) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> This PR introduces an ESLint configuration scoped to the `/frontend` repository. It integrates ESLint with Prettier via the `eslint-plugin-prettier` package, allowing `eslint --fix` to both lint the code for issues and apply Prettier-based formatting automatically. All existing rules that currently produce linting errors in `/frontend` have been temporarily disabled. These will be addressed and re-enabled in a follow-up PR. ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> ### Developer Validations <!-- All of the applicable items should be checked. --> - [ ] I ran `yarn lint` from the root of the repo & committed changes - [x] 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:30 -05:00
yindo closed this issue 2026-02-22 18:36:30 -05:00
yindo changed title from [PR #4785] Add Eslint Config in `/frontend` to [PR #4785] [MERGED] Add Eslint Config in `/frontend` 2026-06-05 15:20:17 -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#4770