Skip to content

Eslint cleanup #14564

Closed
Closed

Description

@julien51

Now that we have upgraded to eslint, I noticed we are using different rules in many of our packages, as well as only applying eslint to some files and not all the files in some packages.

For example, we use yarn run eslint src/ instead of yarn run eslint . which would cover all the files. We should make that in all the packages/applications.

Many packages do also include their own rules and we should avoid that.

This 200 USDC bounty is open for anyone who "normalizes" our use of eslint to the max!

Activity

  1. added
    💰bounty
    on Sep 4, 2024
  2. Myestery commented on Sep 4, 2024

    @Myestery
    Contributor

    I'll love to complete my earlier work here.

  3. julien51 commented on Sep 5, 2024

    @julien51
    MemberAuthor

    I'll love to complete my earlier work here.

    Awesome! Assiogned to you then!

  4. Myestery commented on Sep 11, 2024

    @Myestery
    Contributor

    Hi @julien51
    I have removed many useless rules across all packages in this PR
    only 2 packages now require special ignores and rules as at now

  5. julien51 commented on Sep 12, 2024

    @julien51
    MemberAuthor

    Thanks a lot @Myestery !
    Please post a wallet address for a USDC payment on Base or Optimism!

  6. Myestery commented on Sep 12, 2024

    @Myestery
    Contributor

    0x70b6361545b12c81eb8c66d3fc4a4f5a03f64337
    Thanks

  7. julien51 commented on Sep 12, 2024

    @julien51
    MemberAuthor

    @Myestery Actually there is an issue! I am trying to run yarn run lint in the unlock-app folder and it just hangs!
    I will have to revert your PR.

    Please make sure linting runs/works in every single folder!

  8. Myestery commented on Sep 12, 2024

    @Myestery
    Contributor

    @Myestery Actually there is an issue! I am trying to run yarn run lint in the unlock-app folder and it just hangs! I will have to revert your PR.

    Please make sure linting runs/works in every single folder!

    thats weird cos it worked locally and on the actions too

  9. Myestery commented on Sep 12, 2024

    @Myestery
    Contributor

    I'm having an issue replicating the hang locally ATM and I confirmed from this job https://github.com/unlock-protocol/unlock/actions/runs/10836347274/job/30069954743 that the linting was successful on the unlock-app directory.
    I have also run yarn lint on every other folder using eslint and they were all successful. I'll like to know more about the issue you faced if possible

  10. julien51 commented on Sep 13, 2024

    @julien51
    MemberAuthor

    @Myestery can you please open anew PR with the changes?

  11. Myestery commented on Sep 13, 2024

    @Myestery
    Contributor

    Hi @julien51
    I hope the fix worked this time

  12. 1 remaining item

  13. Myestery commented on Sep 17, 2024

    @Myestery
    Contributor

    Hello @julien51 , Little reminder for bounty payment on this issue

    Hi @julien51, I don't know if you saw this

  14. julien51 commented on Sep 18, 2024

    @julien51
    MemberAuthor

    @Myestery I can confirm we're still having issues with liunt that's hanging for some reason. I confirmed this with @0xTxbi for whom this is happening as well. I am not sure how to reproduce but please can you try on your end as well?

  15. Myestery commented on Sep 18, 2024

    @Myestery
    Contributor

    @Myestery I can confirm we're still having issues with liunt that's hanging for some reason. I confirmed this with @0xTxbi for whom this is happening as well. I am not sure how to reproduce but please can you try on your end as well?

    I could not replicate the issues at all.
    But have you tried yarn install again?

  16. Myestery commented on Sep 18, 2024

    @Myestery
    Contributor

    I suspect its still using the old eslint version and not reading config from the config file thereby scanning node_modules as well.
    yarn install should fix this

  17. julien51 commented on Sep 18, 2024

    @julien51
    MemberAuthor

    I suspect its still using the old eslint version and not reading config from the config file thereby scanning node_modules as well.
    yarn install should fix this

    I don't think that is what is happening.
    I did a full cleanup of the repo locally (git clean -fdx) and then I did yarn && yarn build. At that point it looks like the lit command succeeds... but later when i do changes in the unlock-app app, eventually the lint command fails.

  18. Myestery commented on Sep 18, 2024

    @Myestery
    Contributor

    trying again...

  19. Myestery commented on Sep 18, 2024

    @Myestery
    Contributor

    I was finally able to replicate this issue after I ran yarn build, I had to add an ignore rule to the .next folder that nextjs adds. The fix is here #14633

  20. julien51 commented on Sep 18, 2024

    @julien51
    MemberAuthor

    I was finally able to replicate this issue after I ran yarn build, I had to add an ignore rule to the .next folder that nextjs adds. The fix is here #14633

    Awesome! Please let me test things tomorrow and pay the bounty after that! Thank you so much !

  21. Myestery commented on Sep 23, 2024

    @Myestery
    Contributor

    Hello, were you able to test it yet?

  22. julien51 commented on Sep 24, 2024

    @julien51
    MemberAuthor
  23. Myestery commented on Sep 24, 2024

    @Myestery
    Contributor

    Many thanks
    looking foward to doing more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

💰bounty

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions