Skip to content

Add commit hook - #65

Merged
RikSchefferAmsterdam merged 1 commit into
mainfrom
chore/add-oxfmt
Sep 9, 2026
Merged

RikSchefferAmsterdam merged 1 commit into
mainfrom
chore/add-oxfmt

Conversation

@RikSchefferAmsterdam

Copy link
Copy Markdown
Contributor

Changes

Test instructions

Other notes

@RikSchefferAmsterdam
RikSchefferAmsterdam requested review from a team and a lite review from Copilot September 9, 2026 07:02
@RikSchefferAmsterdam
RikSchefferAmsterdam merged commit ac4a748 into main Sep 9, 2026
2 of 3 checks passed
@RikSchefferAmsterdam
RikSchefferAmsterdam deleted the chore/add-oxfmt branch September 9, 2026 07:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

It introduces a breaking Node ESM/CJS change and the hook/config setup is currently incomplete/incorrect, so the intended commit hook behavior will not work reliably.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR aims to introduce a commit-time formatting workflow by adding Husky and lint-staged to the repository’s Node toolchain.

Changes:

  • Added husky and lint-staged as dev dependencies and added a prepare script to initialize Husky.
  • Added a lint-staged configuration file (.lintstagedrc.js) intended to run oxfmt on staged files.
  • Updated package-lock.json to include the new dependencies.
File summaries
File Description
package.json Adds Husky/lint-staged tooling, Husky prepare script, and sets package type to module.
package-lock.json Locks Husky/lint-staged and their transitive dependencies.
.lintstagedrc.js Introduces lint-staged rules intended to run oxfmt on staged files.
Review details
  • Files reviewed: 2/3 changed files
  • Comments generated: 3
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread package.json
Comment on lines 26 to 30
"volta": {
"node": "24.19.0"
}
},
"type": "module"
}
Comment thread .lintstagedrc.js
Comment on lines +1 to +3
export default {
'!(*package-lock).(js|jsx|ts|tsx|json|md|yml|yaml|css)': 'npx oxfmt',
}
Comment thread package.json
Comment on lines +18 to +23
"format:fix": "oxfmt",
"prepare": "husky"
},
"devDependencies": {
"husky": "^9.1.6",
"lint-staged": "^17.0.4",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants