process: protect main and add linting, formatting and commit hooks for the backend
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- eslint, express, git, javascript, node.js
- Domain
- ci-cd, developer-experience, devops, tooling
Research direction
Start by locating the backend package configuration and existing CI workflow; the issue says the React app already uses CRA's ESLint preset, but does not name backend files or test commands. Review how the backend is built and tested before estimating the lint, format, hook, and pull request template changes. Done means main has the requested protection and backend checks and hooks run as described.
Written by the indexing model from the issue text.
Description
On 9 July five pull requests (#45-#49) were opened from one branch and each was merged a minute or two after its commit, so none could be reviewed; #45 changed 239 files. The backend also has no ESLint, Prettier or Git hooks (only the React app has CRA's ESLint preset).
Suggested fix
- Branch protection on
main: pull request required, required status checks (tests), dismiss stale approvals, include administrators. - ESLint + Prettier for the backend, run by husky + lint-staged on pre-commit and in CI; a commit-msg hook for Conventional Commits (most history already follows it).
- A
.github/PULL_REQUEST_TEMPLATE.mdasking for the linked issue and how it was tested.
Found while reviewing StudyNotion with Claude Code.
- Dominant language
- JavaScript
- Stars
- 23
- Forks
- 8
- Avg merge
- 11m
- Merged PRs (30d)
- 4
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from khemssharma/StudyNotion
-
docs: README is missing the sections its introduction promises; outdated clone URL and Node versionOpendocumentation
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
khemssharma/StudyNotion#55 ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 45/100
khemssharma/StudyNotion#58 ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 38/100
khemssharma/StudyNotion#57 ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 45/100
khemssharma/StudyNotion#56 ·
-
documentation
Difficulty 4/5 3-5 days Newbie friendliness 48/100
khemssharma/StudyNotion#54 ·
All issues in khemssharma/StudyNotion
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
OWASP/CheatSheetSeries#3018 ·
Maintainers usually reply within 1 day
-
Radix number block generates NaN after switching a negative or decimal number to binary, octal or hexPossibly taken @matthewalberto claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
mit-cml/appinventor-sources#4246 · 1 comment ·
Maintainers usually reply within 1 day
-
marketing
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 83/100
GoogleChrome/modern-web-guidance-src#3675 · 2 comments ·
Maintainers usually reply within 1 day