-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[CosmosDB] formatting #10268
[CosmosDB] formatting #10268
Conversation
Cosmos already runs prettier and verifies it in CI. What's the plan for larger repo wide formatting? How will it be enforced? I am a little surprised to see the actual difference here. And that the tests still pass. I would expect them to fail since the formatting changed. |
I would suggest to verify that it works in the CI. It fails on
|
Not good! @zfoster Can you look at this next week? Something not quite right in CI |
Yep - I already noticed this. We seem to have conflicting formatting and it might be that CI isn’t failing on either because I’ve noticed lint changes that change files back to the way they were before but nothing fails even locally. Should be able to fix. |
@southpolesteve and @zfoster, I am interested to know whether there is a conflict between |
@deyaaeldeen Some context on the linting story for cosmos.
I don't see anything in any of the npm scripts in the package.json file that would suggest that prettier is run in CI. Is this something we missed when porting cosmos over to the mono repo? cc @HarshaNalluru
@zfoster I don't see tslint reverting any of the changes introduced in this PR. |
@southpolesteve, @zfoster, Please provide your thoughts on #10219 as well. |
As part of onboarding the cosmos SDK to the central repo, prettier config that was used by cosmos has been removed in favor of the prettier config from the central repo. Other than that, the With this PR, @deyaaeldeen has done the formatting changes according to the prettier config from the central repo, which is good. We can remove the |
I would recommend not to have a cosmos only formatting solution and instead have a repo wide solution for Track 2 packages |
Given the above context and the upcoming work in #10219 (comment), we should be good to go with the changes in this PR. That ok? |
It does look like we missed prettier in the initial repo migration. Whoops! @zfoster and I are both very pro-prettier and use the vscode extension which is why we haven't regressed too much. Merging this is fine with me. I don't have an opinion on the git hook as I haven't used them much. The only thing I care about is that format, lint, or any other code quality check (api extractor..?) is enforced by CI. |
Thanks @southpolesteve api-extractor check is already in place in CI @deyaaeldeen, Let's go ahead and merge the PR |
I'm good to go ahead with these changes as well |
The result of running
rush format
.