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

feat: added design tokens eslint rules to mobile #9653

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

brianacnguyen
Copy link
Contributor

@brianacnguyen brianacnguyen commented May 16, 2024

Description

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

linting.mp4

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've completed the PR template to the best of my ability
  • I’ve included tests if applicable
  • I’ve documented my code using JSDoc format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@brianacnguyen brianacnguyen self-assigned this May 16, 2024
@brianacnguyen brianacnguyen requested a review from a team as a code owner May 16, 2024 15:09
@brianacnguyen brianacnguyen marked this pull request as draft May 16, 2024 15:09
Copy link
Contributor

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.

Copy link

socket-security bot commented May 16, 2024

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@metamask/[email protected] None 0 40.1 kB metamaskbot

View full report↗︎

@georgewrmarshall georgewrmarshall added the team-design-system All issues relating to design system in Mobile label May 16, 2024
Comment on lines +42 to +47
{
files: ['**/*.test.{js,ts,tsx}', '**/*.stories.{js,ts,tsx}'],
rules: {
'@metamask/design-tokens/color-no-hex': 'off',
},
},
Copy link
Contributor

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'],
Copy link
Contributor

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

Screenshot 2024-05-16 at 4 47 02 PM

@@ -1,3 +1,5 @@
// Intentionally using non-design system colors here
/* eslint-disable @metamask/design-tokens/color-no-hex*/
Copy link
Contributor

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*/
Copy link
Contributor

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

@brianacnguyen brianacnguyen marked this pull request as ready for review May 20, 2024 22:16
@brianacnguyen brianacnguyen requested review from a team as code owners May 20, 2024 22:16
Copy link

sonarcloud bot commented May 21, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-design-system All issues relating to design system in Mobile
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants