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

Fix(variables-scss): Export in JS barrel file #DS-1503 #1687

Merged
merged 2 commits into from
Oct 10, 2024

Conversation

curdaj
Copy link
Contributor

@curdaj curdaj commented Oct 4, 2024

Description

Additional context

Issue reference

Copy link

netlify bot commented Oct 4, 2024

Deploy Preview for spirit-design-system ready!

Name Link
🔨 Latest commit bd4326b
🔍 Latest deploy log https://app.netlify.com/sites/spirit-design-system/deploys/6707b3e0bea2750008662069
😎 Deploy Preview https://deploy-preview-1687--spirit-design-system.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 96 (no change from production)
Accessibility: 93 (no change from production)
Best Practices: 100 (no change from production)
SEO: 82 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot added the bug Something isn't working label Oct 4, 2024
Copy link

netlify bot commented Oct 4, 2024

Deploy Preview for spirit-design-system-storybook canceled.

Name Link
🔨 Latest commit bd4326b
🔍 Latest deploy log https://app.netlify.com/sites/spirit-design-system-storybook/deploys/6707b3e0bea2750008662065

@coveralls
Copy link

coveralls commented Oct 4, 2024

Coverage Status

coverage: 78.751%. remained the same
when pulling 414b129 on fix/ds-1503-eslint-export-in-barrel-file
into 8aeab9a on main.

@curdaj curdaj marked this pull request as ready for review October 7, 2024 08:21
@curdaj curdaj requested review from literat, crishpeen and a team as code owners October 7, 2024 08:21
@literat
Copy link
Collaborator

literat commented Oct 7, 2024

I think it would be better to move theme.ts to theme/index.ts if possible. Because now we can import themes from index.ts and some parts also from theme.ts.

@literat
Copy link
Collaborator

literat commented Oct 7, 2024

Btw, in

export const themes = {
  themeLightDefault: {
    colors: themeLightDefault.colors
  },
  themeLightOnBrand: {
    colors: themeLightOnBrand.colors
  },
};

There should be a comma , at the end of the record -> colors: themeLightOnBrand.colors,

@curdaj curdaj requested a review from adamkudrna as a code owner October 7, 2024 14:37
@curdaj curdaj force-pushed the fix/ds-1503-eslint-export-in-barrel-file branch from 02439da to 36a7881 Compare October 7, 2024 18:12
Copy link
Collaborator

@literat literat left a comment

Choose a reason for hiding this comment

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

Nice work. I have written a few suggestion for a better (and much smaller) ESLint configuration and also send a fixup with the ignore of the desing-tokens package from the root configuration.

Every package with its own ESLint configuration should be ignored by the root one so they are not in the collision (yeah, I know, this should be refactored).

packages/design-tokens/package.json Outdated Show resolved Hide resolved
packages/design-tokens/.eslintrc.cjs Outdated Show resolved Hide resolved
@curdaj
Copy link
Contributor Author

curdaj commented Oct 8, 2024

Btw, in

export const themes = {
  themeLightDefault: {
    colors: themeLightDefault.colors
  },
  themeLightOnBrand: {
    colors: themeLightOnBrand.colors
  },
};

There should be a comma , at the end of the record -> colors: themeLightOnBrand.colors,

already fixed

@curdaj
Copy link
Contributor Author

curdaj commented Oct 8, 2024

I think it would be better to move theme.ts to theme/index.ts if possible. Because now we can import themes from index.ts and some parts also from theme.ts.

I am not sure if I understand and where the problem is.

@curdaj curdaj force-pushed the fix/ds-1503-eslint-export-in-barrel-file branch 2 times, most recently from 5eae864 to ad45fa3 Compare October 8, 2024 11:05
@curdaj curdaj force-pushed the fix/ds-1503-eslint-export-in-barrel-file branch from ad45fa3 to f8ee137 Compare October 8, 2024 11:07
@curdaj curdaj requested a review from literat October 8, 2024 12:00
@curdaj curdaj force-pushed the fix/ds-1503-eslint-export-in-barrel-file branch from 414b129 to bd4326b Compare October 10, 2024 11:00
@curdaj curdaj merged commit dd91257 into main Oct 10, 2024
17 checks passed
@curdaj curdaj deleted the fix/ds-1503-eslint-export-in-barrel-file branch October 10, 2024 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants