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

support: eslint rule on live-common import path #1569

Merged
merged 11 commits into from
Oct 13, 2022

Conversation

alexandremgo
Copy link
Contributor

📝 Description

Having the /lib inside the path when importing from "@ledgerhq/live-common" can results in bugs

This eslint rule, using the rule no-restricted-imports throws an error on the pattern `"@ledgerhq/live-common/lib/*"``

❓ Context

  • Impacted projects: LLM (if it works we can do the same for LLD)
  • Linked resource(s):

✅ Checklist

  • Test coverage
  • Atomic delivery
  • No breaking changes

📸 Demo

Screenshot 2022-10-13 at 08 38 42

Screenshot 2022-10-13 at 08 37 54

🚀 Expectations to reach

Please make sure you follow these Important Steps.

Pull Requests must pass the CI and be internally validated in order to be merged.

Having the "/lib" inside the path when importing
from "@ledgerhq/live-common" can results in bugs
This eslint rule throw an error on the pattern
"@ledgerhq/live-common/lib/*"
@vercel
Copy link

vercel bot commented Oct 13, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
live-common-tools ✅ Ready (Inspect) Visit Preview Oct 13, 2022 at 7:56AM (UTC)
3 Ignored Deployments
Name Status Preview Updated
ledger-live-github-bot ⬜️ Ignored (Inspect) Oct 13, 2022 at 7:56AM (UTC)
native-ui-storybook ⬜️ Ignored (Inspect) Oct 13, 2022 at 7:56AM (UTC)
react-ui-storybook ⬜️ Ignored (Inspect) Oct 13, 2022 at 7:56AM (UTC)

@changeset-bot
Copy link

changeset-bot bot commented Oct 13, 2022

🦋 Changeset detected

Latest commit: ec39185

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
live-mobile Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov
Copy link

codecov bot commented Oct 13, 2022

Codecov Report

Base: 43.01% // Head: 74.26% // Increases project coverage by +31.24% 🎉

Coverage data is based on head (ec39185) compared to base (eee8334).
Patch has no changes to coverable lines.

Additional details and impacted files
@@             Coverage Diff              @@
##           develop    #1569       +/-   ##
============================================
+ Coverage    43.01%   74.26%   +31.24%     
============================================
  Files          609       56      -553     
  Lines        25472     2922    -22550     
  Branches      6978      566     -6412     
============================================
- Hits         10957     2170     -8787     
+ Misses       13382      746    -12636     
+ Partials      1133        6     -1127     
Flag Coverage Δ
test 74.26% <ø> (+31.24%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
libs/ledger-live-common/src/bridge/react/index.ts
libs/ledger-live-common/src/operation.ts
...bs/ledger-live-common/src/generated/bridge/mock.ts
...-live-common/src/families/ethereum/nftResolvers.ts
...s/ledger-live-common/src/exchange/swap/initSwap.ts
...ger-live-common/src/exchange/swap/postSwapState.ts
...ommon/src/families/solana/js-prepareTransaction.ts
...mmon/src/families/tezos/deviceTransactionConfig.ts
libs/ledger-live-common/src/nft/helpers.ts
...ger-live-common/src/families/cosmos/transaction.ts
... and 655 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@github-actions
Copy link

@alexandremgo

Screenshots: ✅

There are no changes in the screenshots for this PR. If this is expected, you are good to go.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

👍

@alexandremgo alexandremgo merged commit 459e02d into develop Oct 13, 2022
@alexandremgo alexandremgo deleted the support/lint-error-on-lib-path branch October 13, 2022 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mobile Has changes in LLM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants