-
Notifications
You must be signed in to change notification settings - Fork 107
Feat/ci: add GitHub Actions workflow for linting #847
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
base: main
Are you sure you want to change the base?
Conversation
@sheikhlimon is attempting to deploy a commit to the recode Team on Vercel. A member of the Team first needs to authorize it. |
Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. The estimated time for response is 5–8 hrs. In the meantime, please provide all necessary screenshots and make sure you run - npm build run , command and provide a screenshot, a video recording, or an image of the update you made below, which helps speed up the review and assignment. If you have questions, reach out to LinkedIn. Your contributions are highly appreciated!😊 Note: I maintain the repo issue every day twice at 8:00 AM IST and 9:00 PM IST. If your PR goes stale for more than one day, you can tag and comment on this same issue by tagging @sanjay-kv. We are here to help you on this journey of open source. Consistent 20 contributions are eligible for sponsorship 💰 🎁 check our list of amazing people we sponsored so far: GitHub Sponsorship. ✨ 📚Your perks for contribution to this community 👇🏻
If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊 |
Synced data from Linked IssuesLabels:
Assignees:
Milestones:
|
9679149
to
cb52811
Compare
@iitzIrFan any reason for lockfile to be ignored in git |
The latest updates on your projects. Learn more about Vercel for GitHub.
|
@sheikhlimon is this linting automatic, or user has to make code lint |
No this only runs |
5c47a70
to
d070234
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sheikhlimon
@sheikhlimon can we do this in this was, like when contributors commit, it should run before commiting it should run & if, error encountered it should not commit those changes. @sheikhlimon @sanjay-kv Let me know your thoughts on this !
@iitzIrFan I need to look into that. But you're probably talking about husky pre-commit so it will lint and format automatically when committing. This CI Is just an extra check. |
Yeah need confirmation from @sanjay-kv though on this . |
I've already worked on husky pre-commit, but can't get it to work unless #837 is merged. @sanjay-kv This also requires some additional work if the PR is merged. |
d070234
to
fc60a23
Compare
b02a89d
to
f56acb9
Compare
@sanjay-kv ok linting works let me add husky or else we will have to keep linting more files that are added without being linted fixed or formatted. I think the PR files that are added before the Eslint config also needs to be reformatted |
@sanjay-kv this PR and #874 needs to be merged if you're planning to not merge this then i need create another PR to fully test the husky pre-commit because in this workflow PR I commited some linted fixed files |
no don't need this to test.. tested it to some degree it works But this PR give a extra check even husky gets bypassed or something or the current PR that being merged without being formatted properly |
Description
This PR adds a GitHub Actions workflow to automatically run linting on pushes and pull requests.
Fixes #838
Note:
npm ci
to ensure consistent dependency versions.package-lock.json
must be committed for CI to work correctly.npm install
can be used temporarily, but it may install different versions than intended, leading to inconsistent builds.Additional Note:
.github/workflows/lint.yml
).lint
script and ESLint/Prettier configuration are not yet merged.main
and CI will run successfully.Type of Change
Changes Made
Workflow Details
ubuntu-latest
.npm ci
.npm run lint
).Benefits
Dependencies
package.json
.npm ci
.package.json
includes alint
script (e.g.,"lint": "eslint ."
). The Node.js version in the workflow (node-version: 20
) should be compatible with local development.Explanation for Reviewers
Note on Dependencies:
package.json
andpackage-lock.json
should be committed, and onlynode_modules/
should be ignored.npm ci
to install exact dependency versions. Exceptions can be made if there’s a specific reason for not committing the lock file.Checklist
npm run build
and attached screenshot(s) in this PR.