Skip to content

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Dec 26, 2024

Eslint rule already defined.

The fewer duplicated line of code this file has in Toolpad, the stronger the config in the main repo, the closest to success for the shared config file we are.

I noticed this with #4350.

* We do however want to keep the rules in place to ensure the examples are following
* a reasonably similar code style as the library.
*/
files: ['examples/**/*'],
Copy link
Member Author

@oliviertassinari oliviertassinari Dec 26, 2024

Choose a reason for hiding this comment

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

extends: ['plugin:testing-library/react'],
},
{
files: ['docs/src/modules/components/**/*.js'],
Copy link
Member Author

@oliviertassinari oliviertassinari Dec 26, 2024

Choose a reason for hiding this comment

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

Removed, duplicate with

'material-ui/no-hardcoded-labels': 'off', // We are not really translating the docs/website anymore

@oliviertassinari oliviertassinari added the internal Behind-the-scenes enhancement. Formerly called “core”. label Dec 26, 2024
Comment on lines -61 to -62
// TODO move rule into the main repo once it has upgraded
'@typescript-eslint/return-await': 'off',
Copy link
Member Author

@oliviertassinari oliviertassinari Dec 26, 2024

Choose a reason for hiding this comment

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

@oliviertassinari oliviertassinari added the scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd). label Dec 26, 2024
Copy link
Collaborator

@bharatkashyap bharatkashyap left a comment

Choose a reason for hiding this comment

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

👍🏻

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Feb 21, 2025
@oliviertassinari oliviertassinari changed the title [core] Remove duplicate eslint rule [internal] Remove duplicate eslint rule Aug 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Behind-the-scenes enhancement. Formerly called “core”. PR: out-of-date The pull request has merge conflicts and can't be merged. scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants