-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
feat: added design tokens eslint rules to mobile #9653
base: main
Are you sure you want to change the base?
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
New dependencies detected. Learn more about Socket for GitHub ↗︎
|
… hex color values
{ | ||
files: ['**/*.test.{js,ts,tsx}', '**/*.stories.{js,ts,tsx}'], | ||
rules: { | ||
'@metamask/design-tokens/color-no-hex': '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.
Ignores tests and stories
@@ -11,7 +11,7 @@ module.exports = { | |||
'plugin:import/warnings', | |||
'plugin:react/recommended', | |||
], | |||
|
|||
plugins: ['@metamask/design-tokens'], |
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.
Was missing this step @brianacnguyen
@@ -1,3 +1,5 @@ | |||
// Intentionally using non-design system colors here | |||
/* eslint-disable @metamask/design-tokens/color-no-hex*/ |
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.
Ignoring as it's an image asset component
@@ -1,3 +1,5 @@ | |||
// Intentionally using non-design system colors here | |||
/* eslint-disable @metamask/design-tokens/color-no-hex*/ |
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.
Ignoring as it's an image asset component
95e2429
to
c4aa7f4
Compare
Quality Gate passedIssues Measures |
Description
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
linting.mp4
Pre-merge author checklist
Pre-merge reviewer checklist