Skip to content

Conversation

@XxSURYANSHxX
Copy link

Hi @pradeeban @karthiksathishjeemain , I was trying to fix the Prettier check that keeps failing on PRs, so I made a small “setup + cleanup” PR.

What I changed

  • I added a .prettierrc at the repo root so the whole repo uses one consistent Prettier config.
  • I used the same rules that were already in nextjs-frontend/.prettierrc, so we’re not inventing new formatting rules, just reusing what’s already in the repo:

{
"semi": true,
"trailingComma": "es5",
"singleQuote": false,
"printWidth": 100,
"tabWidth": 2,
"useTabs": false
}

  • After that I ran Prettier once across the files that the GitHub workflow checks:

npx --yes prettier --write "**/*.{js,jsx,json,md,yaml,yml}"

So most of the diff is just formatting changes (spacing / line breaks / quotes), and the only real “new” thing is the root .prettierrc.

Why I did it

The CI already runs a Prettier check (prettier --check "**/*.{js,jsx,json,md,yaml,yml}").
But without a shared config at the repo root, formatting can be inconsistent between folders, and PRs fail just because of style. This should make future PRs simpler: as long as Prettier runs (or the editor formats on save), the Prettier check should stay green.

(Also, this PR doesn’t fix the other CI failures yet — it’s only to make the Prettier check consistent.) Please have a look and let me know your thoughts. Thankyou.

Co-authored-by: Cursor <cursoragent@cursor.com>
@XxSURYANSHxX
Copy link
Author

XxSURYANSHxX commented Feb 6, 2026

@pradeeban @karthiksathishjeemain As you can see in checks, Validate and Prettier Formatting checks have successfully passed.

@XxSURYANSHxX
Copy link
Author

Hey @pradeeban @karthiksathishjeemain wanted to inform that my PR for fixing rest of the GitHub checks are ready and as soon as this gets reviewed, i will finish up with next ones asap. And do let me know if any changes are needed. So was doing a follow up :)

@pradeeban
Copy link
Contributor

Thanks, @XxSURYANSHxX for the fix. I see there are a lot of files in this commit, including many files (such as the .md) that do not appear to be relevant (or am I missing something?). If they are included mistakenly with some trivial changes (such as the change of End of Line character), can you remove them from your PR? It is important to keep the PRs minimal and free from irrelevant files to avoid merge conflicts with other pending PRs.

@XxSURYANSHxX
Copy link
Author

XxSURYANSHxX commented Feb 8, 2026

Hey @pradeeban @karthiksathishjeemain actually what happned is that i applied the Prettier formatting across the entire repo, and in that everything was included (including .md files) as those files were already present in the repo and was not added by me. I only applied changes of Prettier formatting to it. And as you can see with my latest commit to revert all .md files to their previous state has failed the Prettier formatting check once again. and this PR is indeed very big as i asked you for your approval over here #107 (comment) . So any input on what should i do further would be really helpful. As whoever included thses checks did not test it properly and has issues in them as you stated in our conversation before. So should we remove all the .md files from the repo entirely if you do not want them ? As as far as i remember these checks and .md files were added by Amank1412. Please let me know your thoughts. Thankyou :)

image image

@pradeeban
Copy link
Contributor

@XxSURYANSHxX Ah, yes, the GenAI/LLM tools really like to create noisy/verbose md files for nothing. No one got time to read too many md files. I understand what happens here. Thanks for the explanation.

Perhaps, I should simply have merged your PR as-is, without removing the md files from the PR in that case. Whether to remove the md files or their tests, we should look at it separately later. I think, although too many irrelevant md files can be an eyesore, perhaps improving/humanizing them later can have more potential than outright removing them.

Perhaps, you can revert
chore: revert Prettier changes on .md files to keep PR minimal
913cf0f

and bring the PR to include the md files too as you had before?

@XxSURYANSHxX
Copy link
Author

Definitely @pradeeban Thankyou for understanding, we can do the humanisation part of the .md files after we finish the checks so that there will be no further issues. I will get right on it.

@XxSURYANSHxX XxSURYANSHxX force-pushed the chore/prettier-formatting branch from 913cf0f to 8560d3c Compare February 9, 2026 11:46
@XxSURYANSHxX
Copy link
Author

Hii @pradeeban @karthiksathishjeemain, I have successfully reverted this PR to the original commit, Please have a look and let me know your thoughts. And as you can see the preittier formatting and validation checks are green. Thankyou

@pradeeban pradeeban merged commit 78ca329 into healthyinc:dev Feb 9, 2026
6 of 18 checks passed
@pradeeban
Copy link
Contributor

Merged. Thanks.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants