-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[code-infra] Widen eslint file patterns #44148
Conversation
Netlify deploy previewhttps://deploy-preview-44148--material-ui.netlify.app/ Bundle size report |
{ | ||
files: ['docs/data/base/components/modal/UseModal.js'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too fine grained, moving this into the file itself
@@ -380,6 +368,13 @@ module.exports = /** @type {Config} */ ({ | |||
{ | |||
files: ['packages/*/src/**/*.tsx'], | |||
excludedFiles: '*.spec.tsx', | |||
rules: { | |||
'react/prop-types': 'off', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one got lumped in with the one below, but should only apply to tsx files
I think it's for enforcing translation of docs component which were initially only written in JS. Could you open a distinct PR to enable it also on ts files. I will give a look to fix what's needed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. 👍
Widen javascript/typescript rules to all possible extensions. Avoids situations like #44143 (comment)
Question for @mui/docs-infra: what with
material-ui/no-hardcoded-labels
, it applies only to js files and in many ts files there are violations. Should we fix those cases? Or remove the rule altogether?