Closed tmsagarofficial closed 1 year ago
Name | Link |
---|---|
Latest commit | 0d38589c75d529d53d536ea0ed63a167e681570d |
Latest deploy log | https://app.netlify.com/sites/hot-sauced-ui/deploys/6426fe08b2ae7d0008be5ae8 |
Deploy Preview | https://deploy-preview-456--hot-sauced-ui.netlify.app/ |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site settings.
HI @tmsagarofficial, you can make a change in the title. eg fix: update year date from footer
Pls check my commit and let me know whenever possible
@bdougie What do I do now? what about the tests which have failed? π
@bdougie What do I do now? what about the tests which have failed? π
npm run format
Those are lint changes needed. This will also need another approval to get merged.
@bdougie What do I do now? what about the tests which have failed? π
npm run format
Those are lint changes needed. This will also need another approval to get merged.
I really need help with this. Where do I run this ? Also, I'm getting errors if I'm trying to run that locally
Is it done now?
You have to change the values that npm run format
is telling you it can't fix, then it is ready! π
π
@bdougie What do I do now? what about the tests which have failed? π
npm run format
Those are lint changes needed. This will also need another approval to get merged.I really need help with this. Where do I run this ? Also, I'm getting errors if I'm trying to run that locally
Run npm run format
in the project folder, where you installed the dependencies.
It will return the errors it can't fix - those you have to deal with manually π
@tmsagarofficial, @0-vortex & @TAKANOME-DEV but I think there is a disconnect in your knowledge on how npm run format works.
Perhaps leverage the Discord for clarification.
@diivi if you are looking for a new docs addition. npm run format
would be a great addition.
Nice, Maybe I can do something like this - https://torsion.org/borgmatic/docs/how-to/develop-on-borgmatic/#code-style (from another project I contribute to). Does OpenSauced have a Code Style guide or something related that I could refer to?
Okay, just checked the README
for this project; a new heading Code Linting
in the Introduction to Contributing
section sounds good.
Okay, just checked the
README
for this project; a new headingCode Linting
in theIntroduction to Contributing
section sounds good.
Better title, "Applying Lint Styleguide"
What do you think about using husky for these tasks too? I can try to set one up for the format, test scripts. also checking semantic PRs client side could be easier with husky.
Let's see now
@tmsagarofficial follow these steps and it should be good:
npm run format
npm run build
git add src/components/Footer.tsx
npm run push
What do you think about using husky for these tasks too? I can try to set one up for the format, test scripts. also checking semantic PRs client side could be easier with husky.
Added
Let's see now
@tmsagarofficial follow these steps and it should be good:
- In the root of the project, run
npm run format
- Next, build the project to make sure it's all good:
npm run build
- Add the changes:
git add src/components/Footer.tsx
- Commit and push π
@TAKANOME-DEV 4 should be: npm run push
instead of commit if you want to really follow the docs!!!
@diivi @bdougie There is a work in progress on what the correct style guide for the frontend is, both feeding off the backend rules but not consolidated. While hot and insights have diverged in that manner, we did not have the time or resources to unify the rules and only apply the generic npm run format
for eslint fixing in a holistic way. The reason it's somewhat performant is that our configuration is currently made up only of auto-format rules, meaning running lint --fix would generally solve most issues.
Because there are multiple ways a user can overload this, like the OP is potentially using IDE formatting, we should only document how to use them and potential bottlenecks. Part of the triage/maintainer docs on this are already live, while the introduction to contributing doesn't go into much detail. Would love sections like "how to open your first issue" or "how to open your first commit" but feel like that doesn't solve OP problem :<
There is a work in progress on what the correct style guide for the frontend is, both feeding off the backend rules but not consolidated. While hot and insights have diverged in that manner, we did not have the time or resources to unify the rules and only apply the generic npm run format for eslint fixing in a holistic way.
Adding reference to npm run format is all that is needed in the docs. We don't need to list out the style guide.
Let's see now
@tmsagarofficial follow these steps and it should be good:
- In the root of the project, run
npm run format
- Next, build the project to make sure it's all good:
npm run build
- Add the changes:
git add src/components/Footer.tsx
~4. Commit and push~- Run
npm run push
Will try these
What type of PR is this? (check all applicable)
Description
This PR fixes #455 I wanted to get help too on this I could have changed the year fro 2022 to 2023 but I am making it automatic ..
Related Tickets & Documents
I have added the following as a replacement to the static year 2022 . but should I have added this below code??
Mobile & Desktop Screenshots/Recordings
Added tests?
Added to documentation?
[optional] Are there any post-deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?