Skip to content

Chore: Update eslint and its config, clean up some lint#3293

Merged
codebykat merged 9 commits into
trunkfrom
update/eslint
Feb 28, 2025
Merged

Chore: Update eslint and its config, clean up some lint#3293
codebykat merged 9 commits into
trunkfrom
update/eslint

Conversation

@codebykat

@codebykat codebykat commented Feb 12, 2025

Copy link
Copy Markdown
Contributor

Fix

Spun this off from the other dependencies upgrade so we can lint things in peace. eslint 9 moved to a new config file format.

See https://eslint.org/docs/latest/use/configure/migration-guide

incl. a small fix for a MUI console warning about tooltips on disabled buttons.

Test

  1. make lint

Mine shows:

✖ 31 problems (0 errors, 31 warnings)

Release

RELEASE-NOTES.md was updated with:

Updated eslint configuration

@codebykat codebykat self-assigned this Feb 12, 2025
@codebykat codebykat marked this pull request as ready for review February 12, 2025 06:51

@roundhill roundhill left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested well, I noticed this error in the logs while searching:

Tooltip.js:315 MUI: You are providing a disabled `button` child to the Tooltip component.
A disabled element does not fire events.
Tooltip needs to listen to the child element's events to display the title.

Add a simple wrapper element, such as a `span`.

@codebykat

Copy link
Copy Markdown
Contributor Author

Oh hm that looks familiar. I wonder if I had a solution to it in the past...

@codebykat

Copy link
Copy Markdown
Contributor Author

Circled back to this and fixed up the MUI warning. ref: mui/material-ui#8416

Could use another 👀 since I rebased it.

@codebykat codebykat requested a review from roundhill February 28, 2025 05:59

@roundhill roundhill left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still tested well after latest changes 👍

@codebykat codebykat merged commit a1fe102 into trunk Feb 28, 2025
@codebykat codebykat deleted the update/eslint branch February 28, 2025 20:53
@mokagio

mokagio commented Mar 2, 2025

Copy link
Copy Markdown
Contributor

💙

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants