-
Notifications
You must be signed in to change notification settings - Fork 183
chore(monorepo): add a new rule for css modules migration #18839
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
Conversation
add a new rule for css modules migration close AUTH-
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.
Pull Request Overview
Adds a new ESLint override to warn on inline styles in .tsx
files, guiding migration to CSS modules.
- Introduces the
react/forbid-dom-props
rule to forbid thestyle
prop in TSX files (excluding story files) - Temporarily set to
warn
to accommodate existing inline-style usage
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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
files: ['**/*.tsx'], | ||
excludedFiles: ['**/*.stories.tsx'], | ||
rules: { | ||
// TODO: Switch this rule to 'error' once the CSS modules migration is complete. |
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.
could we create a ticket for this and put here?
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.
Makes sense, thank you!
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.
makes sense
Overview
add a new rule for css modules migration
at this moment, this sets
warn
insteaderror
becasue there are some components that usestyle
inapp
,protocol-designer
, andopentrons-ai-client
when i set
error
, there were 115 errors.close AUTH-
Test Plan and Hands on Testing
Changelog
Review requests
Risk assessment