Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Upgrade eslint-config-airbnb-typescript #34642

Merged
merged 24 commits into from
Nov 17, 2022

Conversation

Janpot
Copy link
Member

@Janpot Janpot commented Oct 6, 2022

Tried to upgrade eslint-config-airbnb-typescript so we could use it in Toolpad.

It needed a few updates to the setup. Mainly it now requires eslint-config-airbnb to be set up separately.

The new version generates a lot of new warnings, I already ignored some of them that seem low priority to cut down on the noise, but we may want to review the remaining ones. Some of them seem legit problems. Running yarn eslint --fix gets a lot of them sorted, but I didn't push that yet to keep the noise down.

The main problems seem to center around:

Worth investing more time in this? The react/jsx-no-constructed-context-values ones seem interesting ones to solve IMO

To do before we can marge this:

@Janpot Janpot added the core Infrastructure work going on behind the scenes label Oct 6, 2022
@mui-bot
Copy link

mui-bot commented Oct 6, 2022

Messages
📖 Netlify deploy preview: https://deploy-preview-34642--material-ui.netlify.app/

Details of bundle changes

Generated by 🚫 dangerJS against a091c9d

@oliviertassinari
Copy link
Member

If the react/jsx-no-useless-fragment reports real issues, it could be interesting to fix on its own.

Having more consistency in how we create components with react/function-component-definition sounds great.

@Janpot
Copy link
Member Author

Janpot commented Oct 7, 2022

Just noticed this PR: #34637

Which is also present in the eslint output:

/tmp/material-ui/packages/mui-styles/src/StylesProvider/StylesProvider.js
  41:19  error  The 'context' object (at line 41) passed as the value prop to the Context provider (at line 73) changes every render. To fix this consider wrapping it in a useMemo hook  react/jsx-no-constructed-context-values

There's several more of these caught by the upgraded setup

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Oct 10, 2022
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Oct 11, 2022
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Oct 17, 2022
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Oct 22, 2022
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Oct 24, 2022
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Oct 28, 2022
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Oct 31, 2022
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Oct 31, 2022
This was referenced Nov 5, 2022
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Nov 9, 2022
Copy link
Member

@michaldudak michaldudak left a comment

Choose a reason for hiding this comment

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

It looks like we're finally close to merging this :)

.eslintrc.js Show resolved Hide resolved
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Nov 9, 2022
@Janpot Janpot marked this pull request as ready for review November 9, 2022 23:18
.eslintrc.js Show resolved Hide resolved
.eslintrc.js Show resolved Hide resolved
Copy link
Member

@michaldudak michaldudak left a comment

Choose a reason for hiding this comment

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

I think it's good to go! Thanks for working on this!

@Janpot Janpot merged commit 764faaf into mui:master Nov 17, 2022
@Janpot Janpot deleted the upgrade-eslint-airbnb branch November 17, 2022 21:02
daniel-rabe pushed a commit to daniel-rabe/material-ui that referenced this pull request Nov 29, 2022
feliperli pushed a commit to jesrodri/material-ui that referenced this pull request Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants