[Linter] Update files with respect to sort-imports rule#18567
[Linter] Update files with respect to sort-imports rule#18567bzhang0 wants to merge 5 commits intoAzure:mainfrom bzhang0:issue-9252
sort-imports rule#18567Conversation
|
Thank you for your contribution bzhang0! We will review the pull request and get back to you soon. |
|
Apologies, it seems like a different pull request #18565 is linked here as well. Perhaps this is because I solved the first issue in main instead of creating a new branch? Please excuse this, but if you know how to prevent this, please let me know so I can use that in the future! (I assume it is just making a new branch for every different issue). |
|
Hi @bzhang0 - me again! Yes, looks like your What I usually do is I keep my It looks like #18565 is based off of
There are other ways to tackle this if you don't want to redo changes - you can use If you have any questions, I'm happy to help - feel free to ping me! |
|
Hey @maorleger! Thank you for the feedback :) I found out after I made my first pull request that I probably should have created a branch for each issue - I'm relatively new to using GitHub but always happy to learn :P. Would it be okay to just delete my current fork and restart (creating two new branches for this and the previous PR)? I haven't made any changes that would take too long to fix if I started anew, I'm just not sure if there are any negative effects from deleting a fork. I feel like if I restart from a new fork, I can be more consistent in my PRs, changes, etc. Let me know if this is possible! |
|
It'll be just fine with me 😄 I'm happy to review any new PRs you redo. But, if I may make a recommendation - you don't need to delete your fork and fork again. If you wanted a nice clean slate you could the following: With all that said, feel free to do whatever is easier for you! I believe you can just delete and recreate your fork and it should be fine. Either way you will need to close these PRs and open new ones whenever you're ready. Enjoy shaving yaks - we all have to do it! |
|
I'm having some issues following the method you suggested - for simplicities sake I think I will re fork and redo my fixes to this issue and #18565. I will close this PR now, thank you for the help! |
This solves #9252. I've added the
sort-importsrule into the./common/tools/eslint-plugin-azure-sdk/.eslintrc.jsonand updated files appropriately after callingrush rebuildandrush lint.I used the default settings for
sort-imports, so if there should be changes to the rule settings, please let me know!